Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make this script happen if HumanoidHealth = 0?

Asked by 5 years ago

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

0
.Died Elixcore 1337 — 5y
0
Simple use Humanoid.Died:Connect(function() ... end) yHasteeD 1819 — 5y

Answer this question