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

GroupRank Leaderboard doesn't work?

Asked by
kees31 13
6 years ago

Hello

I try to create a group rank leaderboard but it isn't working. Can someone help? What I do wrong?

local GroupID = 3555315 --This is the group ID Number

   game.Players.PlayerAdded:connect(function(player)
    local stats = Instance.new("IntValue", player)
    stats.Name = "Leaderstats"

    local RankDisplay = Instance.new("StringValue", stats)
    RankDisplay.Name = "Ranks" --Leaderboard stat name
    RankDisplay.Value = player:GetRoleInGroup(GroupID)

end)

Thanks for help!

0
Regarding to the answer I just posted, to clarify what I said, the Leaderstats' name must be in lowercase, otherwise it won't work. SulaymanArafat 230 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
stats.Name = "leaderstats"

It must be lowercase for it to work.

Ad

Answer this question