How do you find a team's score from the leaderboard? Do you have to add all the scores of the players or is there an easier way to find it? It shows the team's score on Roblox's leaderboard, but I can't find the value. I have no idea how to, and I cannot find it anywhere. Any leads? Thanks!
COMMUNITY QUESTION
How do you find a team's score from the leaderboard?
1 answer
I'm not sure if that's what you meant but
local TeamScore
for i,v in pairs(game.Players:GetPlayers()) do
local ScoreNeeded --= Path to your score
TeamScore = TeamScore + ScoreNeeded.Value
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
explain what you mean by team scores a bit maybe?
Lets say the players have a leaderstat for example kills, if 2 players are are on one team, it will add up their kills and show it on the leaderboard, but in my case it is score.
so you're trying to get player's scores from, inside the game, and show it on a gui?