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 11 years ago

Hi, I made a Group Rank script but it does not work. Heres the code:

1game.Players.PlayerAdded:connent (function (P)
2    repeat wait () until P:findFirstChild("leaderstates")
3    local Rank = Instance.new("StringValue", P.leaderstates)
4        Rank.Name = "Rank"
5        Rank.Value = P:GetRoleInGroup(806819)
6end)

Please tell me what mistake i'v done.

2 answers

Log in to vote
-1
Answered by 11 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
11 years ago
1Game.Players.PlayerAdded:connent (function (P)
2    repeat wait () until P:FindFirstChild("leaderstats")--Find should be capitalized
3    local Rank = Instance.new("StringValue", P.leaderstats)--It should be leaderstats, not leaderstates
4        Rank.Name = "Rank"
5        Rank.Value = P:GetRoleInGroup(806819)
6end)
0
Its not working D: Chillu4 0 — 11y
2
Please do not post code with no explanation. User#11893 186 — 11y
0
Ahem, read it... trogyssy 221 — 11y

Answer this question