I'm trying to script a GUI to popup once a GUIs visibility = false. But when I try to do "if script.parent.parent.parent.Menu.Visibility = false then" it shows the equal sign as an error? I don't quite understand this because nothing seems wrong with it to me.
✓ ANSWER ACCEPTED
If statement comes back with an error? [SOLVED]
2 answers
✓ Accepted answer
when you use if and you wan't it to check if it is the same as something else you use 2 = , here take an example
local Testvalue = 10
if Testvalue == 9 then
print("Testvalue is 9")
elseif Testvalue == 10 then
print("Testvalue is not 9 it is 10")
end
Its not visiblity, its Visible and also you should use 2 equal signs ==
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I shave a new problem now, let me explain what I'm making first to better help you understand. So I'm making a menu with a play button that leads into a frame that is a loading screen. But the problem is, I have the frame for the loading screen checked false for visible but it still pops up before the menu? I have no scripts telling it to be visible at game start.