players = game.Players:GetPlayers() for i,v in pairs(players) do v.Character.Humanoid.Health = 0 end
You aren't checking if the player has a character, that's the problem.