Yes I know that – but why is it that the offset for A is different from B?
local OriginalPosition = MainFrame.AbsolutePosition
print("A:", MainFrame.Position.X, "B:", MainFrame.AbsolutePosition.X, "C:", OriginalPosition.X)
prints out
A: 0, 546 B: 296 C: 296
B and C are supposed to print out as 546 not 296? I don’t know where that number came from
Edited: P.S MainFrame’s Parent is ScreenGui, which cannot be moved or scaled which furthermore does not make up why the AbsolutePosition is different from the position itself
The frame’s position and its absolute position are two very different coordinates. The absolute position represents its true position on the user’s screen in pixels, whereas the position represents its relative position from the origin of its parent GuiObject. The only scenario where these two properties align is when the GuiObject in question is a direct child of a ScreenGui
Edit: If you say that is the case, then I am not sure what to say in response. Please show us more, maybe there’s something you’re misinterpreting