----- Water particle handler -----


function waterOutput()
	if script.Parent.ColdOn.Value == false and script.Parent.HotOn.Value == false then
		faucetParticles.Enabled = false
		showerHead.Enabled = false
		bathSound:Stop()
		showerSound:Stop()
	elseif script.Parent.ShowerMode.Value == false then
		faucetParticles.Enabled = true
		showerHead.Enabled = false
		bathSound:Play()
		showerSound:Stop()
	else
		faucetParticles.Enabled = false
		showerHead.Enabled = true
		bathSound:Stop()
		showerSound:Play()	
	end
end

script.Parent.ColdOn.Changed:connect(function()
	waterOutput()
end)

script.Parent.HotOn.Changed:connect(function()
	waterOutput()
end)

script.Parent.ShowerMode.Changed:connect(function()
	waterOutput()
end)
