I am trying to make a ever so simple script that chooses a random player, but it isn't working. The array of players is local players = game.Players:GetChildren()
and when I do print(#players), it prints 0. Why is it saying there is nobody in the game? The function is triggered by a PlayerAdded, so the script should know there is at least 1 player, no?
Thanks in advance |