|
| 26 Apr 2014 10:05 PM |
| Excuse me, but I want to know how to make a GUI stay in the Bottom right with a script, so it looks the same when its in a small roblox window, or in fullscreen. Any direction would help, thanks! |
|
|
| Report Abuse |
|
|
magoo8
|
  |
| Joined: 25 Apr 2009 |
| Total Posts: 1122 |
|
|
| 26 Apr 2014 10:23 PM |
Put this into a script
Function keepDownRight() Script.Parent.Position = keep down at bottom right corner End |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2014 10:33 PM |
| I may look noobish, but I know that wont work... |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:09 AM |
"May look noobish" Joined 9 days ago... Hmm... |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
| |
|
|
| 27 Apr 2014 12:18 AM |
Try Position = UDim2.new(1,-30,1,-30)
Keeping in mind -30 is the negative of the size of the GUI + 5
:: Schrödinger's cat walks into a bar and doesn't. :: |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Apr 2014 12:22 AM |
@Blue You can't just guess the size of the gui and hope for the best, thats why I asked what it was. And there is no reason to add 5 |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:25 AM |
I gave him an example size to follow because he did not give us a size.
Also, if it were a square object, it would look horribly ugly if it was directly attached to the bottom-right of the screen. The 5 pixels is for breathing space.
:: Schrödinger's cat walks into a bar and doesn't. :: |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:27 AM |
This is a pretty sizable GUI, fit's at the top of your screen.
Position: {0, 550},{0, 100}
Size: {0, 250},{0, 30}
If you've ever used kohl's admin and saw his message GUIs, here are his:
Size: {10, 0}, {10, 0}
Position: {-5, 0}, {-5, 0} |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:27 AM |
local Gui = Gui
Gui.Position=UDim2.new(1-Gui.Size.X.Scale,0,-Gui.Size.Y.Scale+1,0)
And I hope your using scale for size and not offset. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Apr 2014 12:29 AM |
{0, 250},{0, 30} size
goes to {1, -250}, {1, -30} position |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:32 AM |
@Accomplished
Using your size His GUI would be 10x the size of his screen And the size Would be 5x the size of his screen to the Left and Down.
:: Schrödinger's cat walks into a bar and doesn't. :: |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:32 AM |
And the position* for the 2nd arg
:: Schrödinger's cat walks into a bar and doesn't. :: |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:34 AM |
Well to not use scale you would have to either have access to mouse or make a whole other gui. I'll use mouse.
local Gui=Gui local mouse=game.Players.LocalPlayer:GetMouse()
Gui.Position=UDim2.new(0,mouse.ViewSizeX-Gui.AbsoluteSize.X,0,mouse.ViewSizeY-Gui.AbsoluteSize.Y)
actually I think this would work with scale and offset. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:36 AM |
| I don't know what you guys are talking about. You must have entered the coordinates wrong. Those coordinates were from my GUI, which fit perfectly on my screen. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:45 AM |
It looks like it fits perfectly on your screen because you can't see the part that is hidden way offset.
Insert a ImageLabel Set is as any decal Make the size UDim2.new(1,0,1,0)
And you'll see what I mean
:: Schrödinger's cat walks into a bar and doesn't. :: |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:49 AM |
| The part that's being covered is the top, so it's be close to the middle. Still don't see why it would be all over the place.. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:51 AM |
@Accomplish It fits perfectly on your screen. However, most people have different computer screen sizes and offset sets to pixels.
So basically if a person came there on iOS it would be way messed up. For this reason is why I almost always use scale, even if it is a bit harder. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 12:52 AM |
I'm referring to when you referenced Kohl's
Size: {10, 0}, {10, 0}
Position: {-5, 0}, {-5, 0}
:: Schrödinger's cat walks into a bar and doesn't. :: |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Apr 2014 12:58 AM |
Khols made it much bigger than he needed to then 1,0,1,0 is fullscreen 5,0,5,0 is fullscreen times 5 |
|
|
| Report Abuse |
|
|