| |
|
|
| 26 Jul 2013 08:09 PM |
| Elaborate more, I don't understand. Do you want to script a Gui? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:10 PM |
Yes, Transfer a script into a gui. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:11 PM |
| The script creates a GUI Into the PlayerGUI. I want to make it without a script having to insert the GUI Into the PlayerGUI. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2013 08:13 PM |
Oh... Just do something like this: a = Instance.new("ScreenGui",plygui) b = Instance.new("TextBox",a) b.AbsoluteSize = UDim2.new(0,0,0,0) |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:15 PM |
| Well, Nvm. I was trying to add a hide/close button to my GUI, But I have no idea how. |
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 26 Jul 2013 08:17 PM |
script.Parent.MouseButton1Down:connect(function() GUIGOESHERE.Visible = not GUIGOESHERE.Visible end) |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:17 PM |
| So how can I edit the script and tell it to make a button that is the size (0,14), (0,14) and it open/closes the whole gui? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:18 PM |
Like this?:
b = Instance.new("TextButton",screengui) b.MouseButton1Click:connect(function() if screengui.Visible == true then screengui.Visible = false else screengui.Visible = true end) |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:19 PM |
@WishNite >GUIGOESHERE.Visible = not GUIGOESHERE.Visible
Omg. I have never thought of setting a bool value that way. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:19 PM |
| Yes. But how do you change the size and position? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2013 08:25 PM |
local x = Instance.new("TextButton", f) x.BackgroundTransparency = 1 x.Text = "Close" x.FontSize = "Size10" x.TextColor3 = fontcolor x.Size = UDim2.new(1,0,.15,0) <<<<<<<<<<<<<<<<<<<<<<<<<<<<< Size... x.Position = UDim2.new(0,0,.45,0) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Position... x.MouseButton1Click:connect(function() f:Destroy() end)
Something like that...
I wanna position a button, can I just add those lines? |
|
|
| Report Abuse |
|
|
Vector2D
|
  |
| Joined: 11 May 2013 |
| Total Posts: 195 |
|
|
| 26 Jul 2013 08:30 PM |
I would suggest Tweening, and give an example, but I don't remember it all too well. Nonetheless, tween away. |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Jul 2013 08:45 PM |
| http://wiki.roblox.com/index.php/TweenPosition_(Method) |
|
|
| Report Abuse |
|
|