Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why is my script not working?

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

✓ Accepted answer

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.

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)

3 comments

0

Its not working D:

2

Please do not post code with no explanation.

0

Ahem, read it...

This discussion is preserved as it was. New answers, comments, and votes are closed.