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

Why is my script not working?

Asked by 10 years ago

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.

2 answers

Log in to vote
-1
Answered by 10 years ago

What wrong he did? That was his own script like he is selling this script to free models. And other players also post without explanation for a script. Don't suspend me I was just saying because I saw some people posting codes without explanation.

Ad
Log in to vote
-2
Answered by
trogyssy 221 Moderation Voter
10 years ago
Game.Players.PlayerAdded:connent (function (P)
    repeat wait () until P:FindFirstChild("leaderstats")--Find should be capitalized
    local Rank = Instance.new("StringValue", P.leaderstats)--It should be leaderstats, not leaderstates
        Rank.Name = "Rank"
        Rank.Value = P:GetRoleInGroup(806819)
end)

0
Its not working D: Chillu4 0 — 10y
2
Please do not post code with no explanation. User#11893 186 — 10y
0
Ahem, read it... trogyssy 221 — 10y

Answer this question