Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Getting all players leaderboard??

Asked by 9 years ago

How would I get the leaderboard in all the players? Maybe this will work?

players = game.Players:GetPlayers()
for i,v in pairs(players) do
                    rounds = v.leaderstats.stats2
                    rounds.Value = rounds.Value + 1
end
1
This works, it's just not efficient. Tkdriverx 514 — 9y
0
What Tkdriverx said. What you have is perfectly fine. SlickPwner 534 — 9y

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

What you have is fine. Unlike what Tkdriverx said, it isn't inefficient. Please do some testing on your own before you ask a question here.

If it ends up not working for whatever reason, what exactly are you trying to do with this?

Ad

Answer this question