Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why wont this script work?

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

I want it to kill everyone after 10 seconds.

Please help.

Thanks.

1 answer

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.