If your shower pipes are rattling it is usually a sign your pipes are not properly clamped to the wall. This could also be due to excessive pressure in your pipes, get your shower pipes checked by an expert to avoid any burst pipes or other more serious issues.