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: UDim: How do I resize GUI?

Previous Thread :: Next Thread 
iBrandyn is not online. iBrandyn
Joined: 30 May 2013
Total Posts: 1699
20 Jun 2014 02:40 AM
Hello,

I am having trouble resizing GUI to fit my needs. I have read the wiki and I do not fully understand how to use the UDim2.new to manipulate the GUI based on my needs

What I need to do is:

I need to create a line on the screen that goes from the left all the way to the right with no gaps (like a stripe) with equal space on the top and on the bottom.

How do I do this?
I've tried but I end up messing up the GUI.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
20 Jun 2014 02:46 AM
You only want to use the first number in the respective brackets.

Something like

Size: {1,0},{.05,0}

This will fill 1 across the x axis (left to right) and 0.05 of the y axis (up and down).
Report Abuse
QuarterTerm is not online. QuarterTerm
Joined: 29 Jun 2013
Total Posts: 6795
20 Jun 2014 03:09 AM
I've coded something like this with surfacegui.

Example like:
while true do
script.Parent.SurfaceGui.Frame.Size = Udim2.new(0,500,0,600)
wait(0.2)
script.Parent.SurfaceGui.Frame.Size = Udim2.new(0,600,0,600)
wait(0.2)
end

I just rotate the brick either horizontally or vertically on which way you want in to go.

Horizontally: Left to Right
Vertically: Bottom to Up

You just got Quarter-Term'd
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
20 Jun 2014 04:11 AM
Don't use offset..
Report Abuse
narbfaic2014 is not online. narbfaic2014
Joined: 31 Mar 2014
Total Posts: 384
20 Jun 2014 05:01 AM
offset is cool if you know how to use it nob ok?
kthx
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
20 Jun 2014 05:47 AM
offset = incompability
nuff said

~The herp lerped a derp~
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
20 Jun 2014 05:57 AM
Narb u know nothing get out
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