So I have a game where there is a "round" and I want to remove a player from a table if they die in the round. For some reason, this part of the script seems to get skipped. Help!
local localtimer = roundtime
activecontestants = {contestants}
while localtimer > 1 do
wait(1)
localtimer = localtimer - 1
status.Value = localtimer
for _, player in pairs(activecontestants) do
if player.Health == 0 then
table.remove(activecontestants, player)
end
end
if #activecontestants == 1 or localtimer <= 1 then
break
end
end |