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 to close an image gui with an imagebutton gui?

Previous Thread :: Next Thread 
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 01:49 AM
how would i do that???
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
03 Aug 2012 01:50 AM
Like every other GUI. (Free Models)
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 01:51 AM
but i want to do it myself!
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Aug 2012 01:51 AM
^Odd, I actually build and script my own guis
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 01:51 AM
well with a little help from you guys
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
03 Aug 2012 01:52 AM
If we create it for you here, you didn't do it on your own. :/ You could take a look at a free model and then write in own hand (more efficient). Than it would be your own way.
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Aug 2012 01:52 AM
script.Parent.Mouse1ButtonClick:connect(function()
parent = script
repeat parent = parent.Parent until parent:IsA("ScreenGui")
for i, v in pais(parent:children()) do
v.Visible = false
end


end)
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 01:53 AM
@ninja i did make the image gui and image button gui
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Aug 2012 01:53 AM
Ugh, I did pairs wrong


script.Parent.Mouse1ButtonClick:connect(function()
parent = script
repeat parent = parent.Parent until parent:IsA("ScreenGui")
for i, v in pairs(parent:children()) do
v.Visible = false
end


end)
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
03 Aug 2012 01:53 AM
^---- Lol.
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Aug 2012 01:53 AM
@Beat, the "Odd I script my..." thing was directed at cheater
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
03 Aug 2012 01:56 AM
Wow and I didn't even mention you.

I'm just not in the mood to create scripts for someone else if they don't know how to do it, they can take a look at free models or the wiki.
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 01:59 AM
ok thnx for the help
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 02:03 AM
wait where do i insert the script into?
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
03 Aug 2012 02:04 AM
THe image button
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 02:05 AM
k
Report Abuse
beatlemania64 is not online. beatlemania64
Joined: 30 Jun 2012
Total Posts: 48
03 Aug 2012 02:09 AM
no output
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