local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local toilet = game.Workspace.Toilet -- Assuming you have a Toilet object in your workspace local speed = 10 -- Adjust this value to change the speed of the toilet -- Function to move the toilet towards the player local function moveTowardsPlayer() while true do local direction = (character.HumanoidRootPart.Position - toilet.Position).unit toilet.CFrame = CFrame.new(toilet.Position, toilet.Position + direction * speed) wait(0.1) end end -- Connect the function to the character's humanoid state humanoid.Died:Connect(function() -- Stop moving the toilet when the player dies toilet.Velocity = Vector3.new(0,0,0) end) -- Start moving the toilet moveTowardsPlayer()