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

Not putting to stage 1 and getting error code?

Asked by 3 years ago
game.Players.PlayerAdded:Connect(function(player)
    local test = player:WaitForChild("leaderstats")
    script.Parent.Touched:Connect(function()
        test.Stage = 1
    end)
end)

Error Code: 15:26:37.517 - Stage is not a valid member of Folder

0
You could try test:WaitForChild("Stage").Value = 1 oftenz 367 — 3y
0
oof it looks like i copied you... strangejmaster43 139 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

if Stage1 is a value add .Value and you might want to do test:FindFirstChild("Stage")

so the code could be:

test:FindFirstChild("Stage").Value = 1
0
Better explanation then me xd oftenz 367 — 3y
Ad

Answer this question