Ad
Log in to vote
0

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

Asked by 3 months ago

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)

0
Do you mean the values are in the leaderstats? Meltdown81 304 — 3mo
0
Kinda yea, but its not called leaderstats. Its the same thing more or less. GalaxyFPS_Studios 91 — 3mo

1 answer

Log in to vote
0
Answered by
Fifkee 143
3 months ago
Edited 3 months ago

Go over the player's levels using some form of loop (pairs, ipairs, while, repeat) and then apply the server changing system from there.

0
pairs and ipairs isnt a form of loop, its an iterator function used in the for loop. RubenKan 2947 — 3mo
Ad

Answer this question