I have a table, like this:
alive = {}
Then in my round script it sets a BoolValue, named InGame, inside every player, to true, then adds them to the table.
Then I want the round to end, so I have a for do loop:
for time = 1,100 do
wait(1)
for i,v in pairs(game.Players:GetPlayers()) do
if v.InGame.Value == false then
table.remove(alive, v.Name)
end
if #alive <=1 then
break
elseif #alive == 0 then
break
end
end
end
But after I kill someone (I have a separate script that sets InGame to false when one dies), I get this error:
23:22:50.463 - Workspace.Rounds:115: bad argument #2 to 'remove' (number expected, got string)
The line it's referring to is the 5th line in my second script (the one that ends the round)
Please help?

2 comments
That worked, but now I have no output, and it doesn't end the round either way.
Replace the line with alive[v.Name] = nil.