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

Is there an algorithm to get GUIs in scales instead of offset?

Asked by 7 years ago

For example, I want to make my GUIs based off of scale instead of offset. So it's proportional on all monitor sizes. Is there any algorithm to do this? Would appreciate any help!

1 answer

Log in to vote
-1
Answered by 7 years ago
Edited 7 years ago

The first number of the X coordinate and Y coordinate is the scale, or to use it in a script, do

local frame = nil --insert frame here
frame.Position = UDim2.new(1, 0, 1, 0) --The 1's are the scale part.

Ad

Answer this question