|
| 31 Dec 2011 06:03 AM |
function onClicked() if script.Parent.IsMinimized.Value == true then script.Parent.Parent.Main.Visible = true elseif script.Parent.IsMinimized.Value == true then script.Parent.Parent.Main.Visible = false end end script.Parent.MouseButton1Down:connect(onClicked)
I don't need to tell you what this does. But It doesn't show an output and it doesn't work. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 06:04 AM |
Double poster.
R.I.P Ben Breedlove. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 06:05 AM |
What? I never double posted ._. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 06:06 AM |
Lies.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=60622126
R.I.P Ben Breedlove. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 06:07 AM |
OMG.
IT'S NOT THE SAME SCRIPT/POST.
ARE YOU BLIND?
Anyways
fixed
topic closed |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 09:16 AM |
| You put the if then statement as an elseif statement... You can't do that. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 09:20 AM |
@ Z3R0xT0L3R4NC3
WHAT?
if Number == 1 then DoStuff(true, 1) elseif Number == 2 then DoStuff(true, 2) else DoStuff(false, Number) end
Have you ever heard of an elseif? Or is that not what you meant?
~Read Between the Squiggles~ |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 09:30 AM |
function onClicked() script.Parent.IsMinimized.Value = not script.Parent.IsMinimized.Value end script.Parent.MouseButton1Down:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 09:36 AM |
Nick, here's his script
function onClicked() if script.Parent.IsMinimized.Value == true then --If the value is true script.Parent.Parent.Main.Visible = true elseif script.Parent.IsMinimized.Value == true then --ElseIf the value is true script.Parent.Parent.Main.Visible = false end end script.Parent.MouseButton1Down:connect(onClicked)
Pretty sure that won't work. Change line 3 to: if script.Parent.IsMinimized.Value ~= true then |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 09:36 AM |
| See what I mean? I know what I'm talking about. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 09:37 AM |
I understand now; I didn't see that mistake in his code....
~Read Between the Squiggles~ |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 10:00 AM |
| @Z3RO, why do you have all of those if statements? See the code I gave. |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2011 10:04 AM |
| I was showing Nick what I was talking about when I said the IfThen statement was the same as the ElseIf statement |
|
|
| Report Abuse |
|
|