|
| 12 Nov 2015 03:38 PM |
| Hello, I am having issues with my custom made Gui, I have everything set to where I want it, join in a server, Boom, everything in the gui's is out of place or messed up. Is there a solution? |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 12 Nov 2015 03:39 PM |
| Are you using Scale when you size and position the guis? Don't use offset. Use scale. |
|
|
| Report Abuse |
|
|
|
| 12 Nov 2015 03:39 PM |
Yeah use Scale. {scale,offset},{scale,offset} |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 12 Nov 2015 04:26 PM |
Clarification:
Using Scale automatically scales itself based on the player's screen size available.
Using offset keeps it in that position regardless. |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 Nov 2015 04:43 PM |
As they've said, you're likely using pixel size opposed to resolution percentage scaling.
UI elements use a UDim2 value type to resize/reposition themselves based off of the percentage of the client's monitor, plus or minus additional pixels. Using pixels is good for minigames with collision detection or that require a specific size of elements in order to work, but scaling is typically better as it allows the ui to look the same for every player that sees it.
Size = {0.25, 0, 0.25, 0} would make a box that takes up a sixteenth of the character's screen, {1, 0, 0.5, 0} would take up the top half of their screen. Experiment around with it until you can get it looking the way you want.
It may also be useful to note that those percentage values should be sized by multiples of [1/(2^x)], meaning you want them to be evenly divisible by numbers such as 0.0625, 0.03125, or 0.015625. Scale values are treated as NumberValues, so setting them to 0.1 would give them this odd value of 0.10003052, or something similar. This is no longer visible as Roblox now shortens the values in the property explorer to only show the first three decimal digits, but it still exists.
kthxbai. |
|
|
| Report Abuse |
|
|