Finding the GUI Position like AutoScale Lite

Hi!

So I’m using anchor point to position one of my gui’s at the bottom left of the screen and I am needing to now get the offset position of the gui.

The gui is a child of a frame so I can’t use absolute position, i need the position relative to the parent.

Thanks!

1 Like

I forgot to include but It essentially convert it the same way AutoScale does.

This is how I would do it:

UDIM2.new(script.Parent.GUI.Position.X.Offset,script.Parent.GUI.Position.Y.Offset)

-- REPLACE GUI WITH THE NAME OF YOUR GUI YOU WANT TO FIND THE OFFSET OF.

The GuiObject’s AnchorPoint property is 1,1 and Position {1,-5}{1,0-5}, positioning it just a little bit off the bottom left side of the parent frame.

The method you suggested returns the properties offset value, not the GuiObject’s position relative to it’s parent which I’m after.

If anyone has a new solution it would be appreciated

Solved. Thank you for trying to help