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 » Scripters
Home Search
 

Re: how do i make a gui always on the bottom left

Previous Thread :: Next Thread 
Josherino is not online. Josherino
Joined: 11 Nov 2012
Total Posts: 3261
08 Aug 2016 03:11 PM
like people have different sized screens


SIGN HERE! [ https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195201245 ] https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=34254796 R$48,218
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
08 Aug 2016 03:14 PM
gui.Position = UDim2.new(0,0,1,-gui.AbsoluteSize.Y)


Report Abuse
ByDefault is not online. ByDefault
Joined: 25 Jul 2014
Total Posts: 3197
08 Aug 2016 03:14 PM
Set the position to {0, 0},{1,-FrameSizeY}
Report Abuse
Josherino is not online. Josherino
Joined: 11 Nov 2012
Total Posts: 3261
08 Aug 2016 03:16 PM
Thanks!
May I ask why the '1' is there?


SIGN HERE! [ https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195201245 ] https://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=34254796 R$48,218
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
08 Aug 2016 03:25 PM
set the position of the gui to 100% of the screen. So the gui will entirely off the screen. Then simply subtract the position by the size of the gui and wala.


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
08 Aug 2016 03:57 PM
UDim2.new(XScale,XPixels,YScale,YPixels)

The way UDim2 works:

Scale = Number*ScreenSize

Number is a percent from 0%-infinity% (0-infinity)
So full screen size will be 100% (1)

Pixels is self explanitory
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
08 Aug 2016 03:58 PM
Both scale and pixels can be negative as well
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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