|
| 09 Jun 2013 05:05 PM |
function clicked() if isopen == false then isopen = true script.Parent.Parent.MainFrame.Visible = true elseif isopen == true then isopen = false script.Parent.Parent.MainFrame.Visible = false end end script.Parent.MouseButton1Down:connect(clicked)
*It's in a picture, not sure if it would work for pictures. *The parents are correct I double checked
Anyone think they know? |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
| |
|
|
| 09 Jun 2013 06:10 PM |
It worked without defining it in my other script but I added this to the top of the script
isopen = script.Parent.Value
(boolean) gonna see if it works now |
|
|
| Report Abuse |
|
|
| |
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
| |
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 09 Jun 2013 06:20 PM |
You can't assign a property to a variable
function clicked() if isopen.Value == false then isopen.Value = true script.Parent.Parent.MainFrame.Visible = true elseif isopen.Value == true then isopen.Value = false script.Parent.Parent.MainFrame.Visible = false end end script.Parent.MouseButton1Down:connect(clicked)
~ Usering ~ |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2013 06:33 PM |
| Thanks for trying, I just removed the whole thing and redid it lol. |
|
|
| Report Abuse |
|
|