Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 9 years ago

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

Log in to vote
1
Answered by
Andorks 23
9 years ago

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)
0
Please accept my answer, thank you. Andorks 23 — 9y
Ad

Answer this question