If your trying to make a "Rank Leader board" use my script. It's 68% working that means, if it doesn't work exit the game and join again. I had lot's of Script Producer's (7) Test the script. I can assure you it works, but like I said a 68% chance it doesn't always work. Here is the script, Enjoy!
game.Players.PlayerAdded:connect(function(P)
repeat wait() until P:findFirstChild("leaderstats")
local Rank = Instance.new("StringValue", P.leaderstats)
Rank.Name = "Rank"
Rank.Value = P:GetRoleInGroup(GROUPIDHERE) |