Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to Scale a gui to fit in all device ?

Asked by 5 years ago

So i want to create a gui who have a good size for all device but when i create a gui the gui is not scaled for all device and when you rezize the windows for exemple the size of the gui doesnt chnage so u cant see anymore the gui ... So i dont know how to create a perfect gui so if you knwo ... Answer me thx :)

0
Either use the already built in "Scale" feature of GUI's or make individual GUI sizes for each device type. DinozCreates 1070 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

A Gui object's position and size properties are composed of four values, each being in an X or Y pair. The first value of each pair, called Scale, will not compensate for differing resolutions. To adjust for other resolutions, use the second value in each pair, Offset. Your new size or position may look something like this:

{0,0.1,0,0.1}

In a script, it would be like:

GuiObject.Position = UDim2.new(0,0.1,0,0.1)

Accept and upvote if this helps!

0
Uhhhhhhh DinozCreates 1070 — 5y
0
uhhhhhhh Gey4Jesus69 2705 — 5y
0
uhhhhh AfraiEda 8 — 5y
Ad

Answer this question