Im making a fps game where when you join a game, it will detect the Level of every player, and if the other players average levels are lower or higher than a specific number, then it will send you into a different server better suited for your level. So how do I gather all the values of player levels?(the levels are number values inside the game.Players.LocalPlayer)
✓ ANSWER ACCEPTED
How to gather all the values of every player and put them into a table?
1 answer
✓ Accepted answer
Go over the player's levels using some form of loop (pairs, ipairs, while, repeat) and then apply the server changing system from there.
1 comment
0
pairs and ipairs isnt a form of loop, its an iterator function used in the for loop.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Do you mean the values are in the leaderstats?
Kinda yea, but its not called leaderstats. Its the same thing more or less.