IJay2013
|
  |
| Joined: 27 May 2013 |
| Total Posts: 178 |
|
|
| 29 Oct 2013 05:58 PM |
Hi, i'm making a GUI, and it's almost done...But, i want a small tab, that on click drops down a smaller GUI. How would i do this?
-What would the script be? -What basic objects are needed? |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 29 Oct 2013 06:02 PM |
script.Parent.MouseButton1Click:connect(function() -- code end) |
|
|
| Report Abuse |
|
|
IJay2013
|
  |
| Joined: 27 May 2013 |
| Total Posts: 178 |
|
|
| 29 Oct 2013 06:03 PM |
| @Above would you mind partying me? Taking me step by step? |
|
|
| Report Abuse |
|
|
Pillaged
|
  |
| Joined: 14 Jul 2013 |
| Total Posts: 59 |
|
|
| 29 Oct 2013 06:03 PM |
Hierarchy:
ScreenGui >TextButton >>Script >>Frame
Script:
debounce = false script.Parent.MouseButton1Click:connect(function() if debounce == false then debounce = true script.Parent.Frame.Visible = true elseif debounce == true then debounce = false script.Parent.Frame.Visible = false end end) |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 29 Oct 2013 06:06 PM |
He wants to make it drop down.
script.Parent.Frame:TweenSize(UDim2.new(x,x,y,y),Out,"Linear",1)
Use that to make it drop down.
|
|
|
| Report Abuse |
|
|
Pillaged
|
  |
| Joined: 14 Jul 2013 |
| Total Posts: 59 |
|
|
| 29 Oct 2013 06:07 PM |
| Oh, I thought he just wanted a drop down GUI not a drop down GUI that drops down, lol. |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 29 Oct 2013 06:09 PM |
| Even better would be to set the ClipsDescendants property on the dropping down GUI's background to true so it looks really fancy :) |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 29 Oct 2013 06:10 PM |
| What is this ClipsDescendants you speak of :o? |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 29 Oct 2013 06:15 PM |
Oh you're about to have a GUIgasm like I did when I learned they made this a thing: http://wiki.roblox.com/index.php/ClipsDescendants_(Property) |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 29 Oct 2013 06:18 PM |
| WTF OMG!!!!!!!!!!!!! GUIGASMK@!EHWSDVUEWB JS;oADNJORWBEHADbcibewsahidbhcrn sedz |
|
|
| Report Abuse |
|
|
IJay2013
|
  |
| Joined: 27 May 2013 |
| Total Posts: 178 |
|
|
| 29 Oct 2013 06:36 PM |
| I've made it a model, message me for the link to finish please! |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 29 Oct 2013 06:38 PM |
| That is a textbox not a textbutton. |
|
|
| Report Abuse |
|
|