#Vector2 to UDim2
1 messages · Page 1 of 1 (latest)
pretty much all youd need to do is subtract the absolute size of the parent frame from the mouse position and divide the new vec2 by the absolute size of the parent
then you can use UDim2.fromScale() to make a udim2 out of the result
ehh could you like show an example
(mousePos - absolutePos) / absoluteSize
assuming the gui object is being placed inside of an existing frame
if it isnt in an existing frame the idea is similar but with different values
and what is the absoulute Pos bc absoulute size is the size of the gui I think but what is the position
the absolute position of the gui
ohh so of the frame
not of the gui youre placing but the one that the new object is being placed into
yea yea i understand