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.
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
1 | local Testvalue = 10 |
2 | if Testvalue = = 9 then |
3 | print ( "Testvalue is 9" ) |
4 | elseif Testvalue = = 10 then |
5 | print ( "Testvalue is not 9 it is 10" ) |
6 | end |
Its not visiblity, its Visible and also you should use 2 equal signs ==