How to get a frame's position relative to the whole screen?

I’m making a node-based editor for a plugin and I need to get the position of the 'connector dot ’ inside the node to create a line to show that two nodes are connected.

image

The problem is, when I try to get the position of the connector dot, it gives me its position relative to the node. I need it’s position relative to the whole screen in scale. How would I achieve this?

2 Likes

https://developer.roblox.com/en-us/api-reference/property/GuiBase2d/AbsolutePosition

1 Like