How Do You Add Group Ranking In The Leaderboard?
COMMUNITY QUESTION
How Do You Add Group Ranking In The Leaderboard?
2 answers
You should use getroleingroup.
Basic lua"
game.Players.PlayerAdded:connect(function(player)
Print("Player is " ..player:GetRoleInGroup(GroupId).. ".") --This will show rank name.
end)
You can change getroleingroup to getrankingroup to get the number of rank.
I made a simple script here that you can copy!
(In the blanks put in the group ID and group name)
game.Players.PlayerAdded:connect(function(P) repeat wait() until P:findFirstChild("leaderstats") local Rank = Instance.new("StringValue", P.leaderstats) Rank.Name = "Blank" Rank.Value = P:GetRoleInGroup(Blank) end)
If you want to buy my script, you are welcome to!
If you want any more information, PM me!
This discussion is preserved as it was. New answers, comments, and votes are closed.
