local B={}local n=12 local x=false local c=script.Parent.Parent.Water local g=script.Parent.Parent.ToiletBowl.Sound g.TimePosition=.05 g:Play()wait(.67)for B,n in pairs(script.Parent.Parent:GetChildren())do if n.Name=="\087\097\116\101\114\083\119\105\114\108"then n.ParticleEmitter.Transparency=NumberSequence.new(.9)n.ParticleEmitter.Rate=500 end end for B=1,10,1 do c.CFrame=c.CFrame*CFrame.new(0,.003,0)wait()end wait(7)for B=1,130,1 do c.Mesh.Scale=c.Mesh.Scale+Vector3.new(-0.003,0,-0.003)c.CFrame=c.CFrame*CFrame.new(0,-0.003,0)wait()end wait(.2)for B,n in pairs(script.Parent.Parent:GetChildren())do if n.Name=="\087\097\116\101\114\083\119\105\114\108"then n.ParticleEmitter.Rate=0 end end wait()if script.Parent.Parent.ToiletUsed.Value==true then c.BrickColor=BrickColor.new("\080\097\115\116\101\108 \121\101\108\108\111\119")end wait(0)for B=1,10,1 do for n,x in pairs(script.Parent.Parent:GetChildren())do if x.Name=="\087\097\116\101\114\083\119\105\114\108"then x.ParticleEmitter.Transparency=NumberSequence.new(.9+.015*B)if B==10 then x.ParticleEmitter.Rate=0 end end end wait(.2)end script.Parent.Parent.ToiletUsed.Value=false c.BrickColor=BrickColor.new("\070\111\103")for B=1,370,1 do c.Mesh.Scale=c.Mesh.Scale+Vector3.new(.001,0,.001)c.CFrame=c.CFrame*CFrame.new(0,.001,0)wait()end c.CFrame=script.Parent.Parent.WaterResetPos.CFrame c.Mesh.Scale=Vector3.new(1,0,1)x=false script.Disabled=true

local interactiveParts = {}
local activationDistance = 12
local flushing = false
local water = script.Parent.Parent.Water
local sound = script.Parent.Parent.ToiletBowl.Sound
sound.TimePosition = 0.05
sound:Play()
wait(0.67)

			for i, v in pairs(script.Parent.Parent:GetChildren()) do
				if v.Name == "WaterSwirl" then
					v.ParticleEmitter.Transparency = NumberSequence.new(0.9)
					v.ParticleEmitter.Rate = 500
				end
end
			
			for i = 1, 10 do
				water.CFrame = water.CFrame * CFrame.new(0, 0.003, 0)
				wait()
			end
			wait(7)
			
			for i = 1, 130 do
				water.Mesh.Scale = water.Mesh.Scale + Vector3.new(-0.003, 0, -0.003)
				water.CFrame = water.CFrame * CFrame.new(0, -0.003, 0)
				wait()
			end
			
			wait(0.2)
			
			for i, v in pairs(script.Parent.Parent:GetChildren()) do
				if v.Name == "WaterSwirl" then
					v.ParticleEmitter.Rate = 0
					end
			end
wait()
			
			
			if script.Parent.Parent.ToiletUsed.Value == true then
				water.BrickColor = BrickColor.new("Pastel yellow")
			end
			
			wait(0)
			
			for i = 1, 10 do
				for ii, v in pairs(script.Parent.Parent:GetChildren()) do
					if v.Name == "WaterSwirl" then
						v.ParticleEmitter.Transparency = NumberSequence.new(0.9 + (0.015 * i))
						if i == 10 then
							v.ParticleEmitter.Rate = 0
						end
end
				end
				wait(0.2)
			end
			
			script.Parent.Parent.ToiletUsed.Value = false
			water.BrickColor = BrickColor.new("Fog")
			
			for i = 1, 370 do
				water.Mesh.Scale = water.Mesh.Scale + Vector3.new(0.001, 0, 0.001)
				water.CFrame = water.CFrame * CFrame.new(0, 0.001, 0)
				wait()
			end
			water.CFrame = script.Parent.Parent.WaterResetPos.CFrame
			water.Mesh.Scale = Vector3.new(1,0,1)
			flushing = false
			script.Disabled = true
		

