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

Why Do I Get The Error Message " quest is not a valid member of Script" on this script?

Asked by 4 years ago

quest = false local Dialog = script.Parent Dialog.DialogChoiceSelected:connect(function(player,choice)

if choice.Name == "Yes" then
    quest = true
end

end)

0
I don't understand what you're trying to do here as I don't believe your script is formatted correctly. Please use the code block option for easy reading. Dreadd15 4 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

If you're trying to get the variable from another script you can't just call it as script.Quest, I think you need a modular script and to get into all of that... gl

0
thank you! dochooideveloper 2 — 4y
Ad

Answer this question