generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: YOU HAVE GOT TO BE JOKING o_o

Previous Thread :: Next Thread 
YaYaBinks3 is not online. YaYaBinks3
Joined: 05 Jun 2009
Total Posts: 2631
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
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
31 Dec 2011 06:04 AM
Double poster.

R.I.P Ben Breedlove.
Report Abuse
YaYaBinks3 is not online. YaYaBinks3
Joined: 05 Jun 2009
Total Posts: 2631
31 Dec 2011 06:05 AM
What?
I never double posted ._.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
31 Dec 2011 06:06 AM
Lies.

http://www.roblox.com/Forum/ShowPost.aspx?PostID=60622126

R.I.P Ben Breedlove.
Report Abuse
YaYaBinks3 is not online. YaYaBinks3
Joined: 05 Jun 2009
Total Posts: 2631
31 Dec 2011 06:07 AM
OMG.

IT'S NOT THE SAME SCRIPT/POST.

ARE YOU BLIND?

Anyways

fixed

topic closed
Report Abuse
Z3R0xT0L3R4NC3 is not online. Z3R0xT0L3R4NC3
Joined: 06 Feb 2011
Total Posts: 127
31 Dec 2011 09:16 AM
You put the if then statement as an elseif statement... You can't do that.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
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
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
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
Z3R0xT0L3R4NC3 is not online. Z3R0xT0L3R4NC3
Joined: 06 Feb 2011
Total Posts: 127
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
Z3R0xT0L3R4NC3 is not online. Z3R0xT0L3R4NC3
Joined: 06 Feb 2011
Total Posts: 127
31 Dec 2011 09:36 AM
See what I mean? I know what I'm talking about.
Report Abuse
nickmaster24 is not online. nickmaster24
Joined: 04 Oct 2008
Total Posts: 8906
31 Dec 2011 09:37 AM
I understand now; I didn't see that mistake in his code....

~Read Between the Squiggles~
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
31 Dec 2011 10:00 AM
@Z3RO, why do you have all of those if statements? See the code I gave.
Report Abuse
Z3R0xT0L3R4NC3 is not online. Z3R0xT0L3R4NC3
Joined: 06 Feb 2011
Total Posts: 127
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image