Attempt to call a nil value

i’m trying to get a random number between 1 and the amount of players in game but i keep getting the error attempt to call a nil value

the gamePlayers variable is a folder of those who are playing and not afk
image
image

its math.random, not math.Random

the reason i’m not using that is because i want only those not in lobby

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.