Hey guys, I got this error message:
22:12:22.155 - LoadCharacter can only be called when Player is in the world 22:12:22.168 - Script 'ServerScriptService.Script', Line 96 - global Classic 22:12:22.175 - Script 'ServerScriptService.Script', Line 189 - global ChooseRound 22:12:22.178 - Script 'ServerScriptService.Script', Line 202 22:12:22.180 - Stack End
Here is where I think the problem lies:
for i = 1,#players do
if players[i] then
players[i].TeamColor = game.Teams['Not Playing'].TeamColor
players[i]:LoadCharacter()end --This is line 96
end
Why am I getting this error message even though I have put in a check to see if the player ~= nil?

2 comments
I am not sure due to never recieving this error, but make sure that the player being loaded exists in the server. That it's not a name of a player whom is not playing.
alpha, i think line 2 does exactly that