for o,A in pairs(coldTap:GetChildren())do if A:FindFirstChild("\067\108\105\099\107\068\101\116\101\099\116\111\114")then A.ClickDetector.MouseClick:Connect(function()if coldOn.Value==false then coldOn.Value=true faucet.ParticleEmitter.Enabled=true waterSound:Play()coldTap:SetPrimaryPartCFrame(coldTap.PrimaryPart.CFrame*CFrame.Angles(math.rad(-45),0,0))else coldOn.Value=false if hotOn.Value==false then faucet.ParticleEmitter.Enabled=false waterSound:Stop()end coldTap:SetPrimaryPartCFrame(coldTap.PrimaryPart.CFrame*CFrame.Angles(math.rad(45),0,0))end end)end end
----- cold tap handler -----

for i, v in pairs(coldTap:GetChildren()) do
	if v:FindFirstChild("ClickDetector") then
		v.ClickDetector.MouseClick:Connect(function()
			if coldOn.Value == false then
				coldOn.Value = true
				faucet.ParticleEmitter.Enabled = true
				waterSound:Play()
				coldTap:SetPrimaryPartCFrame(coldTap.PrimaryPart.CFrame * CFrame.Angles(math.rad(-45), 0, 0))
			else
				coldOn.Value = false
				if hotOn.Value == false then
					faucet.ParticleEmitter.Enabled = false
					waterSound:Stop()
				end
				coldTap:SetPrimaryPartCFrame(coldTap.PrimaryPart.CFrame * CFrame.Angles(math.rad(45), 0, 0))
			end
		end)
	end
end
