Well, here's a code i copied from somewhere in Internet:
for _, c in pairs(game.Players:GetChildren()) do local hum = c.Character:WaitForChild('Humanoid') hum.Health = 0 end
This is code to kill every player in server. Well IT DOES WORK, but... i tested in Command bar input in studio, but when i connected it to a function, and then Roblox does just ignore the script. Well this function works, because other scripts in this function works, but this one doesn't run. Maybe i should execute it from a LocalScript? Also, it can be just a bug. But remember! 1. The function works properly and runs 2. The script does work and i tested it 3. This is in a Server script! What do I do? Please, help!