I'm making a round-based game and I'm adding every player to a table to get easy access to them but only one player gets in a table, Can anyone tell me why?
Here's the code to add them to the table
local playersAlive = {}
for i, player in pairs(game.Players:GetPlayers()) do
if player then
table.insert(playersAlive, player)
end
end

1 comment
that's a variable, not a table