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 » Scripters
Home Search
 

Re: Open/Close Scripts doesn't work.

Previous Thread :: Next Thread 
iBrownz is not online. iBrownz
Joined: 08 Aug 2014
Total Posts: 53
05 Jun 2015 06:50 PM
I've tried almsost every script but it don't work. Should I just start over on a new game or can you help em find a reliable source. Btw this is for an gui
Report Abuse
infortality is not online. infortality
Joined: 28 May 2012
Total Posts: 942
05 Jun 2015 06:51 PM
Well you definitely didn't give us enough details to help you.
What are you trying to open/close? a door?
Report Abuse
iBrownz is not online. iBrownz
Joined: 08 Aug 2014
Total Posts: 53
05 Jun 2015 06:52 PM
I said its for an gui ^ Did you read it?
Report Abuse
infortality is not online. infortality
Joined: 28 May 2012
Total Posts: 942
05 Jun 2015 06:53 PM
But guis don't open or close. I thought the gui was just a button for it (because not enough detail in explanation). So are you talking about making a gui invisible/opaque?
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
05 Jun 2015 06:56 PM
With or without animation? Just appear and disappear as the person above said? Can you show us any of those scripts?
Report Abuse
mrfergie is not online. mrfergie
Joined: 25 Mar 2010
Total Posts: 522
05 Jun 2015 06:56 PM
http://wiki.roblox.com/index.php?title=Tweening


~~ fergalicous ~~
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
05 Jun 2015 06:57 PM
local gui = script.Parent

--close button
gui.MouseButton1Click:connect(function()
gui.Parent.Frame.Visible = false
end)

--open button
gui.MouseButton1Click:connect(function()
gui.Parent.Frame.Visible = true
end)
Report Abuse
iBrownz is not online. iBrownz
Joined: 08 Aug 2014
Total Posts: 53
05 Jun 2015 07:00 PM
Basically it's a button (IN A GUI) that I need to open a gui. I want ti to also clos ebut it onyl seems to workj in studio rather than in person. Im going to try the script above.
Report Abuse
iBrownz is not online. iBrownz
Joined: 08 Aug 2014
Total Posts: 53
05 Jun 2015 07:03 PM
Btw the script above doesn't work at all
Report Abuse
iBrownz is not online. iBrownz
Joined: 08 Aug 2014
Total Posts: 53
05 Jun 2015 07:04 PM
A gui does open and close but you need a button to function it. A button isn't a gui itself
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
05 Jun 2015 07:09 PM
Lold. MouseButon1Click is a function of the gui. Make sure you put the script in am ImageButton or ImageButton.
Report Abuse
iBrownz is not online. iBrownz
Joined: 08 Aug 2014
Total Posts: 53
05 Jun 2015 07:12 PM
I did and it isn't a image button I changed the GUI part to the name of my current gui sincer it didnt work and also the Frame to the name of my current frame
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
05 Jun 2015 07:25 PM
Make sure it is a local script

PlayerGui
ScreenGui
Frame
OnButton
OffButton
FrameThatWillTurnOffOn






Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
05 Jun 2015 07:27 PM
in thiscase it will be

local gui = script.Parent
--off button
gui.MouseButton1Click:connect(function()
gui.Parent.FrameThatWillTurnOffOn.Visible = false
end)

--on button
gui.MouseButton1Click:connect(function()
gui.Parent.FrameThatWillTurnOffOn.Visible = true
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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