I have this short part of the script here that I'm using to kill everyone. Unfortunately it seems to only affect the first person. Can someone explain to me what is wrong?
for i,v in pairs(game.Players:GetPlayers()) do
v.Character.Humanoid.Health = 0
Thanks

4 comments
Try connecting to the PlayerAdded event.
How would I do that?
It's not in a function, and you aren't choosing when to run it. So it just runs at the start of the server. I don't have enough information on why or when you are killing them to help you any further.
Have you checked the wiki?