UI Object Not Returning Overridden UIListLayout Position

A basic rundown of the script I’m using would be, you hover over the button, and the hover frame appears under it with the specific name of the button, though this is not what I’m having trouble with.

Code
--// yes this is a snippet, all the variables are accounted for
for _, Button in pairs(MainUI.Menu:GetChildren()) do
	if Button:IsA("TextButton") then
		Button.MouseEnter:Connect(function()
			HoverText.Position = Button.Position
			HoverText.Visible = true
		end)

		Button.MouseLeave:Connect(function()
			HoverText.Visible = false
		end)
	end
end

The issue is, when HoverText.Position = Button.Position is called, it returns

image

this value instead of the overridden one that UIListLayout moved the TextButton to, am I suppost to be calling another position? I feel like it should return the ListLayout’s Position. I’ve searched up topics and heard it has something to do with AbsolutePosition but I seemingly can’t find anything else related to a use case.

The overridden position from the UiListLayout isn’t going to be in the TextButton’s position property, so you should use AbsolutePosition because it’s the actual position of where the TextButton really is on screen.

Can’t really tell how I’m suppost to use absoluteposition, I believe i tried using ToOffset for it but it just didn’t move at all, which I’m seeing its put on the documentation.

Absolute position is read only

Anyone maybe looking, (If its alittle offset of X maybe check you’re AnchorPoint of the object your trying to move) I fixed it by doing this:

HoverText.Position = UDim2.new(0, Button.AbsolutePosition.X, 0, 50)
--// Scale.X, Offset.X, Scale.Y, Offset.Y
--\\ Last Value Confirms Y Value