Nibri
|
  |
| Joined: 15 Jun 2010 |
| Total Posts: 748 |
|
|
| 05 Sep 2011 09:43 AM |
| I need help. I want to position a TextLabel in the center of the screen and a TextButton at the bottom of the TextLabel. Does anyone know how to position those GUIs like that? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 05 Sep 2011 09:44 AM |
Not use offset do it like this
Pos = UDim2.new(0.5,0,0.5,0) --That is EVERY screens center |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
|
| 05 Sep 2011 09:47 AM |
gui1.Position = UDim2.new(.5, 0, .5, 0) gui2.Position = UDim2.new(.5, 0, .5, 0) + UDim2.new(gui1.Y.Scale, gui1.Y.Offset, 0, 0)
Simples. |
|
|
| Report Abuse |
|
|
Nibri
|
  |
| Joined: 15 Jun 2010 |
| Total Posts: 748 |
|
|
| 05 Sep 2011 09:53 AM |
| Okay. But I need a GUI the size of the game screen when you have Roblox Studio's Toolbox,Explorer,Properties,Output,and Diagnostics on. That's (X=)? by (Y=)? pixels? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 09:55 AM |
| Not everybody's screen size is the same. |
|
|
| Report Abuse |
|
|
Nibri
|
  |
| Joined: 15 Jun 2010 |
| Total Posts: 748 |
|
|
| 05 Sep 2011 10:03 AM |
| I see. Well,if I did the script like you said,then how would I make the TextButton close itself and the TextLabel as if they were zooming out? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 05 Sep 2011 10:09 AM |
| dont use offset again, and set the size (x, y) to 1.0, that should be everyones screen size. |
|
|
| Report Abuse |
|
|
Nibri
|
  |
| Joined: 15 Jun 2010 |
| Total Posts: 748 |
|
|
| 05 Sep 2011 10:16 AM |
| Can you type that kind of script out for me? It really is my first time trying to script GUIs. |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Sep 2011 10:17 AM |
| If you want, you check out free models and try too learn it too! |
|
|
| Report Abuse |
|
|
Nibri
|
  |
| Joined: 15 Jun 2010 |
| Total Posts: 748 |
|
| |
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 05 Sep 2011 10:24 AM |
| I think its better than asking in forum because you will learn from free models instead of asking :D |
|
|
| Report Abuse |
|
|