✓ Accepted answer
You are probaly using the "players" in line 3 as a varible that says "game.Players:GetPlayers()" or "game.Players:GetChildern()" but when you do that, it does not do the players in a table again. So it tries to put all the players in a table when you assing the table. But then the players are not in the game yet. So you should instead use
function SpawnPlayers()
print("Spawining Players")
for i, player in in pairs(game.Players:GetPlayers()) do
player:LoadCharacter()
end
end
so it will go through all the players that are currently in the game and not only the players when you assinged the table. I hope this helps
1 comment
It means the player has not join the game yet