I am making a Ship Simulator (Last time a popular one appeared was late 2010!) but I am having troubles in the menu of the game! I think I might have left something small but crucial out as I have checked the locations of the GUI's and all is current.
01 | local Button = script.Parent |
02 | Frame = script.Parent.window 2 |
03 | hide = script.Parent.open |
04 | lhide = script.Parent.open 2 |
05 |
06 | function onClick() |
07 | if lhide.Visible = = false then |
08 | lhide.Visible = true |
09 | elseif lhide.Visible = = true then |
10 | lhide.Visible = false |
11 | end |
12 | if Frame.Visible = = false then |
13 | Frame.Visible = true |
14 | elseif Frame.Visible = = true then |
15 | Frame.Visible = false |
Hope you can help,
Michael
I can't see any problems. If you're sure all the pathways are correct, then the only thing I can think of on hand is that Button is not a TextButton or ImageButton.
If Button is just a regular gui instance (such as a TextLabel) then this will not work, it has to be a TextButton or ImageButton.