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

Whats wrong with this for loop?

players = game.Players:GetPlayers()
for i,v in pairs(players) do
				v.Character.Humanoid.Health = 0
			end

2 comments

0

need a wait()

0

What error are you getting?

1 answer

You aren't checking if the player has a character, that's the problem.

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