----- sink plug handler -----


plug.Interactive.ClickDetector.MouseClick:Connect(function()
	if plugged.Value == false then
		plugged.Value = true
		plug.Plug.CFrame = plug.Plug.CFrame * CFrame.new(0, -0.08, 0)
		plug.Interactive.CFrame = plug.Interactive.CFrame * CFrame.new(0, 0.14, 0)
		plug.Shaft.CFrame = plug.Shaft.CFrame * CFrame.new(0, 0.14, 0)
		script.Parent.Plug.Plug.Open.Playing = false
		script.Parent.Plug.Plug.Draining.Playing = false
	else
		plugged.Value = false
		plug.Plug.CFrame = plug.Plug.CFrame * CFrame.new(0, 0.08, 0)
		plug.Interactive.CFrame = plug.Interactive.CFrame * CFrame.new(0, -0.14, 0)
		plug.Shaft.CFrame = plug.Shaft.CFrame * CFrame.new(0, -0.14, 0)
		script.Parent.Plug.Plug.Open.Playing = true
		script.Parent.Plug.Plug.Draining.Playing = true
		wait(10)
		script.Parent.Plug.Plug.Open.Playing = false
		script.Parent.Plug.Plug.Draining.Playing = false
	end
end)
