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 4 years ago
if lastChoice.Choice3 then

end

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

if lastChoice.Choice3 ~= nil then

end

and with

if lastChoice.Choice3 == nil then

end

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 — 4y
0
"elseif" Will maybe do the trick? rotaapjes 22 — 4y

2 answers

Log in to vote
1
Answered by 4 years ago

"elseif" Will maybe do the trick?

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

end
end

That the solution i find

Answer this question