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

Why Choice3 is not a valid member of Folder?

Asked by 5 years ago
1if lastChoice.Choice3 then
2 
3end

Its say "Choice3 is not a valid member of Folder" in the outpout and the rest of the script don't execute. Its just to check if choice3 exist. I also try with

1if lastChoice.Choice3 ~= nil then
2 
3end

and with

1if lastChoice.Choice3 == nil then
2 
3end

But its never work, whats the problem?

0
of course choice3 is not here but its a "if" so the script suppose to continue if he's not existing, right? scorpion981 27 — 5y
0
"elseif" Will maybe do the trick? rotaapjes 22 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago

"elseif" Will maybe do the trick?

0
i accept this because i cant accept my own answer scorpion981 27 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
1if lastChoice:FindFirstChild("Choice3") then
2    local cc = lastChoice:FindFirstChild("Choice3")
3    if cc.Parent == lastChoice then
4 
5end
6end

That the solution i find

Answer this question