How can I make a Group Rank Gui Leaderboard?
Asked by
7 years ago Edited 7 years ago
So here is the script:
01 | game.Players.PlayerAdded:connect( function (player) |
03 | local folder = Instance.new( "Folder" ,player) |
04 | folder.Name = "leaderstats" |
08 | local rank = Instance.new( "IntValue" ,folder) |
09 | rank.Name = "School Rank" |
10 | rank.Value = player:GetRoleInGroup( 1084573 ) |
Now, how can I make it where the custom gui knows the rank.
And Here is another script that makes the text to know the username and the rank but how do I make it where it's a group rank?
2 | local player = game.Players.LocalPlayer |
3 | script.Parent.Text = "Rank" .. player:GetRoleInGroup( "leaderstats" ):FindFirstChild( "Rank" ).Value |
And here is a photo I did to make a gui Group rank leaderboard:
https://gyazo.com/f323c744816862abe85148975cda5b8d
https://gyazo.com/d375a6e43362fab0bb875cb1f7022fbd