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

How to remove all players humanoid?

Current Script :

game.Players:WaitForChild("Jack_Hase")
local player = game.Players:GetPlayers()
for i = 1, #player do
player[i].Character:Destroy()
end

Error : Workspace.Script:4: attempt to index field 'Character' (a nil value)

So what I want this script to do is remove all player's humanoid or make all players ragdoll forever. This could be used in an earthquake where the shake is so strong, no one can stand up, they all ragdoll.

Thanks

1 comment

0

in line 1, this is used because when I join the earthquake starts, I will add shaking later if I want to

1 answer

✓ Accepted answer
game.Players:WaitForChild("Jack_Hase")
local player = game.Players:GetPlayers()
	for i = 1, #player do
	player[i].Character.Humanoid:Destroy()
	end

2 comments

0

thank you

0

:D

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