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
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
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
Better explanation then me xd
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
You could try test:WaitForChild("Stage").Value = 1
oof it looks like i copied you...