Is their anyway to make this more efficient? This is located inside the workspace. Sometimes it will say that the humanoid is nil. I put if ~= nil, but that don't work.
while true do wait()
local Players = Game.Players:GetChildren()
for i = 1, #Players do
if Players[i].Character.Humanoid.Health == 0 then
end
end
end
