Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to gather all the values of every player and put them into a table?

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)

2 comments

0

Do you mean the values are in the leaderstats?

0

Kinda yea, but its not called leaderstats. Its the same thing more or less.

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.