generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How Do I Make a GUI Stay at the Bottom Right?

Previous Thread :: Next Thread 
XlAscensionlX is not online. XlAscensionlX
Joined: 17 Apr 2014
Total Posts: 872
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 is not online. 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
XlAscensionlX is not online. XlAscensionlX
Joined: 17 Apr 2014
Total Posts: 872
26 Apr 2014 10:33 PM
I may look noobish, but I know that wont work...
Report Abuse
deathkiller554 is not online. deathkiller554
Joined: 26 Jul 2011
Total Posts: 201
27 Apr 2014 12:09 AM
"May look noobish"
Joined 9 days ago...
Hmm...
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
27 Apr 2014 12:14 AM
What size is your gui?
Report Abuse
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
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 is not online. 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
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
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
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
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
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
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 is not online. 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
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
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
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
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
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
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
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
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
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
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
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
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
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
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
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image