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!
- The function works properly and runs
- The script does work and i tested it
- This is in a Server script! What do I do? Please, help!

2 comments
are you calling the function after assigning it?
yes. everything works. I said that scripts in the function works, except this one. But the script itself works good