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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|