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: How would I do this??

Previous Thread :: Next Thread 
18robot18 is not online. 18robot18
Joined: 01 Feb 2009
Total Posts: 118
25 Mar 2014 03:00 PM
So, I am trying to make this Gui and I have it working so far so now I am making a button that closes and opens it all, here is what I have so far:

function hi()
script.Parent.Parent.TextButton.Visible = false
end

script.Parent.MouseButton1Down:connect(hi)

I don't know if this would mess up the script but could I do this?:


function hi()
script.Parent.Parent.TextButton1.TextButton2.Visible = false
end

script.Parent.MouseButton1Down:connect(hi)

or would I have to put each in their own script inside of the TextButton?
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
25 Mar 2014 03:04 PM
open = true

script.Parent.MouseButton1Down:connect(function()
if open then
blah.blah.Visible = false
open = false
elseif not open then
blah.blah.Visible = true
open = true
end
end)
Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
25 Mar 2014 03:06 PM
script.Parent.MouseButton1Down:connect(function()
blah.blah.Visible = not open
open = not open --This statement must be second, I think you can figure out why
end)
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
25 Mar 2014 03:07 PM
fire that doesnt help

Report Abuse
fireblade2 is not online. fireblade2
Joined: 18 Nov 2007
Total Posts: 4666
25 Mar 2014 03:08 PM
It's just a condensed version of what you wrote. I'm not sure if I understand what this person is trying to do, still.
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
25 Mar 2014 03:10 PM
ok sorry
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