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

How do I make a script that after 5 seconds have past the game will delete everyone's Humanoid?

I have done this code VVV

wait(5)
FindH = game.Players:FindFirstChild(Humanoid)
FindH:Destroy()

but it does not work. I know about the PlayerJoined command but I need to be able to find all the players and edit them for a game I am making. So how would I do that?

1 answer

✓ Accepted answer

You would need a loop and the GetChildren method.

wait(5)
for i,v in pairs(game.Players:GetChildren()) do
	v.Character.Humanoid:Destroy()
end

4 comments

0

That script does not work?

0

I realized a flaw. Try now.

0

Thank you so much :D

0

No problem.

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