Quality of water will normally affects fish. Copper in the pipes can be one reason. Using parasites can kill some, so use it after confirmation. Low oxygen may also cause them to die. Test your water for tests like pH,hardness,alkalinity,ammonia,nitrite,salt and oxygen. A Raccoon can also make damage to goldfish.