I have been to the roblox wiki page on custom leaderboards, and I have followed all of the instructions. I have figured out how to make the leaderboard, but I am having a lot of trouble making my group connected with it, and having ranks. I am not that familiar with GUI's. Please help me figure out how to do this, or if you know of a good model I could use and customize, would be amazing. Thank you!
COMMUNITY QUESTION
How do I make a custom leaderboard that has ranks for my group?
1 answer
Use the following script:
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("IntValue")
leaderstats.Name = "leaderstats"
leaderstats.Value = 0
local rank = Instance.new("StringValue")
rank.Name = "Rank"
rank.Value = player:GetRoleInGroup(groupidhere)
leaderstats.Parent = player
rank.Parent = leaderstats
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Please accept my answer, thank you.