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

Why wont this script work?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

wait (10) game.Workspace.Player.Humanoid.Health = 0

I want it to kill everyone after 10 seconds.

Please help.

Thanks.

1 answer

Log in to vote
1
Answered by
tumadrina 179
9 years ago

there isn't a player called player, but this will work

game.Players.PlayerAdded:connect(function(Plr)
    wait(10)
    Plr.Character.Humanoid.Health=0
end)
Ad

Answer this question