I was this script:

local clickdetector = script.Parent
clickdetector.MouseClick:Connect(function(player) -- registers the click
    while true do -- from here on is just your code
        game.Workspace.OHHH.Position = Vector3.new(12.724, 1.415, 131.858)

        wait(0.1)
        game.Workspace.OHHH.Position = Vector3.new(23.224, 2.815, 131.808)
        wait(3)
    end
end)

to happen when u die

2 comments

0

.Died

0

Simple use Humanoid.Died:Connect(function() ... end)