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!
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)