local q={}local w=12 local D=false local s=script.Parent.Parent.Water local e=script.Parent.Parent.ToiletBowl.Sound e:Play()wait(.885)for q,w in pairs(script.Parent.Parent:GetChildren())do if w.Name=="\087\097\116\101\114\083\119\105\114\108"then w.ParticleEmitter.Transparency=NumberSequence.new(.55)w.ParticleEmitter.Rate=500 end end for q=1,4,1 do s.CFrame=s.CFrame*CFrame.new(0,.01,0)wait()end wait(4.05)for q=1,10,1 do for w,D in pairs(script.Parent.Parent:GetChildren())do if D.Name=="\087\097\116\101\114\083\119\105\114\108"then D.ParticleEmitter.Transparency=NumberSequence.new(.55+.015*q)if q==10 then D.ParticleEmitter.Rate=0 end end end wait(0)end wait(1.22)for q=1,52,1 do s.Mesh.Scale=s.Mesh.Scale+Vector3.new(-0.007,0,-0.007)s.CFrame=s.CFrame*CFrame.new(0,-0.007,0)wait()end if script.Parent.Parent.ToiletUsed.Value==true then s.BrickColor=BrickColor.new("\080\097\115\116\101\108 \121\101\108\108\111\119")end wait(.5)script.Parent.Parent.ToiletUsed.Value=false s.BrickColor=BrickColor.new("\070\111\103")for q=1,52,1 do s.Mesh.Scale=s.Mesh.Scale+Vector3.new(.0066,0,.0066)s.CFrame=s.CFrame*CFrame.new(0,.0066,0)wait()end s.CFrame=script.Parent.Parent.WaterResetPos.CFrame s.Mesh.Scale=Vector3.new(1,0,1)D=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:Play()
wait(0.885)

			for i, v in pairs(script.Parent.Parent:GetChildren()) do
				if v.Name == "WaterSwirl" then
					v.ParticleEmitter.Transparency = NumberSequence.new(0.55)
					v.ParticleEmitter.Rate = 500
				end
end
			
			for i = 1, 4 do
				water.CFrame = water.CFrame * CFrame.new(0, 0.01, 0)
				wait()
			end
			wait(4.05)
			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.55 + (0.015 * i))
						if i == 10 then
							v.ParticleEmitter.Rate = 0
						end
end
				end
				wait(0)
			end
			wait(1.22)
			for i = 1, 52 do
				water.Mesh.Scale = water.Mesh.Scale + Vector3.new(-0.007, 0, -0.007)
				water.CFrame = water.CFrame * CFrame.new(0, -0.007, 0)
				wait()
			end
			
			if script.Parent.Parent.ToiletUsed.Value == true then
				water.BrickColor = BrickColor.new("Pastel yellow")
			end
			
			wait(0.5)
			
			
			
			script.Parent.Parent.ToiletUsed.Value = false
			water.BrickColor = BrickColor.new("Fog")
			
			for i = 1, 52 do
				water.Mesh.Scale = water.Mesh.Scale + Vector3.new(0.0066, 0, 0.0066)
				water.CFrame = water.CFrame * CFrame.new(0, 0.0066, 0)
				wait()
			end
			water.CFrame = script.Parent.Parent.WaterResetPos.CFrame
			water.Mesh.Scale = Vector3.new(1,0,1)
			flushing = false
			script.Disabled = true
		

