How to Apply Offset to Absolute Position Calculation

Hello,

I am trying to make a selector that hovers over the item in the scrolling frame, I tried using absolute position but it doesn’t seem to work. If anybody has a method of doing this then please let me know because I don’t know how to apply an offset to this method.

Thanks,
Zen

local RelativePosition = Slot.AbsolutePosition - Stages.Stage2.Selector.AbsolutePosition
Stages.Stage2.Selector.Position = UDim2.fromOffset(RelativePosition.X,RelativePosition.Y)

image

1 Like

absolute position is read only, meaning you can’t change it. What I would do is to just copy the properties of the UI you’re currently hovering over

edit: also make sure to parent it to the same as to what you’re hovering so position and size is correct

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.