|
| 10 Jun 2014 06:29 PM |
script.Parent.MouseButton1Click:connect(function() mainShop = script.Parent.Parent.MainShop if mainShop.Visible == false then mainShop.Visible = true script.Parent.Text = "Back" else mainShop.Visible = false script.Parent.Text = "Shop" end end)
There is no output and all it does when I click the gui is make the gui disapear |
|
|
| Report Abuse |
|
|
| |
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 10 Jun 2014 06:49 PM |
| looks fine and, of course it will disappear, that's what you made it do. |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 06:59 PM |
aww found my mistake
script.Parent.MouseButton1Click:connect(function() mainShop = script.Parent.Parent.Frame if mainShop.Visible == false then mainShop.Visible = true script.Parent.Text = "Back" else mainShop.Visible = false script.Parent.Text = "Shop" end end)
I need it to be the name of the shop "Frame" not the open button"MainShop". |
|
|
| Report Abuse |
|
|