This is a regular script thats disabled and gets enabled by another script thats also not a local script. I want it to just kill everyone on the server ONCE, but for some reason it either kills a few people on the server and when it does theyre trapped in an infinite loop of being killed even after I put break and disable the script afterwards.
for i, player in pairs(game.Players:GetChildren()) do
player.Character.Humanoid.Health = 0
break
end

1 comment
Try addings prints around where it enables this script; that might bring you to your answer. :o