I’m trying to get the scale values of UDim2 of a gui so that I can offset its position. How will I be able to do this?
Do you mean how to get the scale values from a Gui’s Positional UDim2?
local frame = script.Parent
local xScale = frame.Position.X.Scale
local yScale = frame.Position.Y.Scale
Is this what you meant?
1 Like
yeah, something like that? does that work?
Yea it works if the thing you have can be given a UDim2 for Position/size, like a frame in this case
Position/Size property of GuiObjects like Frames, TextButtons, are split into 2 categories, X
and Y
, and those are split into 2 categories as well Scale
and Offset
, you just do that to get the scales