I need my gui to stay the same size and position

I want to make my gui stay the same size and position.

I am having trouble making the gui stay the same. For example images have a ScaleType called fit.
Screenshot_1
This makes it so if your screen is very stretched out it would turn out like this.


instead of this.

I am wondering if there is a feature like this with regular gui or frames not images since if I go on a different device it looks like this for regular frames when I scale it.

But the original is this.

I have tried looking and couldn’t find any all I found was scale it.

5 Likes

AutoScale Lite - Roblox

Use this plugin.

It will automatically calculate the gui size and position to scale and offset, so that on every device the gui looks the same. Hope this helps!

3 Likes

I have used that plugin what exactly would I use on that plugin?

1 Like

Well if you click on the blue button then click scale, size and position then the problem will go away

IMG_1324

Use those to change size and the position can be changed manually.

I mentioned all I found was scale. It doesn’t work I also added an example.

You could either use:
A UIAspectRatioConstraint instance at 1:1 (inside the GUI object you want to scale)
OR
Change the SizeConstraint property to RelativeXX or RelativeYY and set the size for both axes to be the same.

(This only works if you want your GUI object to be a perfect square.)

1 Like

How would I do this for a rectangle?

use the aspect ratio constraint and set it to something like 1.5 (depending on how long you want the rectangle)
this is very inconsistent; you could also use a UISizeConstraint and set the min and max to your preferred length (in pixels) dont use this, just set the offset to your preferred length (in pixels)

2 Likes