local rp = gt[math.random(1,#gt)]
local gt = game.Players:GetPlayers()
for _,Player in pairs(gt) do -- For all the players
if not Player == rp then -- If player is not the randomly selected player
if Player.Humanoid ~= 0 then --what im trying to do is if all the players are dead then it will restart the script...
h.Text = "NOOOOO "
script.Archivable = false
script.Disabled = true
wait()
script.Disabled = false
script.Archivable = true
end
end
end
but it doesnt seems to work, so i'd hope one of you guys could try helping me

2 comments
However, it is important to know that if their humanoid is removed, or they respawn, this script will not function as expected.
hmmh, its not working -.-