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

Why wont this group display script work?

Asked by 10 years ago

So, I tried making this quick script to realising this does not work. It is suppost to display a rank but does not display on the leaderboard. Any help? Thanks.

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(1123228)  
end)

Answer this question