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
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
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?
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
This works, it's just not efficient.
What Tkdriverx said. What you have is perfectly fine.