Hi, I made a Group Rank script but it does not work. Heres the code:
game.Players.PlayerAdded:connent (function (P)
repeat wait () until P:findFirstChild("leaderstates")
local Rank = Instance.new("StringValue", P.leaderstates)
Rank.Name = "Rank"
Rank.Value = P:GetRoleInGroup(806819)
end)
Please tell me what mistake i'v done.

3 comments
Its not working D:
Please do not post code with no explanation.
Ahem, read it...