Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a custom leaderboard that has ranks for my group?

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!

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)

1 comment

0

Please accept my answer, thank you.

This discussion is preserved as it was. New answers, comments, and votes are closed.