How can i get position of a frame thats inside of a scrolling frame and controlled by uigridlayout?

I have tried using the “AbsolutePosition” property but that didnt work, is there a way to get the position of the frame?

1 Like

You need to account for the scroll position to get the offset for how far down it is on the scrollingFrame relative to the absolute position. So basically like this:

local frameAbsolutePosition = frame.AbsolutePosition
local scrollPosition = scrollingFrame.CanvasPosition
local frameRelativePosition = frameAbsolutePosition - scrollPosition

-- Position of the frame
print(frameRelativePosition)
1 Like