How would I get the position of a frame relative to another frame?

I’m making a node based editor and need the position of the connect button (highlighted in purple) relative to the pan frame (highlighted in orange). The problem is the connect button isn’t parented to the pan frame.


How would I do this?

You can take the AbsolutePosition of both Gui elements and subtract them to get the difference between the X and Y axis.

Ex. print(GuiElement1.AbsolutePosition - GuiElement1.AbsolutePosition)

I’m not sure if I read the question properly but I think I did?