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

Not putting to stage 1 and getting error code?

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

2 comments

0

You could try test:WaitForChild("Stage").Value = 1

0

oof it looks like i copied you...

1 answer

✓ Accepted answer

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

1 comment

0

Better explanation then me xd

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