AbsolutePosition Not Working as Expected

  1. What do you want to achieve? I am trying to use GuiObject.AbsolutePosition to get the distance between two gui objects.

  2. What is the issue? Absolute Position is saying the two objects are far apart, even though they aren’t.

  3. What solutions have you tried so far? I tried making their anchor points the same (0.5) and putting them in the same frame.

Right now, they are in the same frame, and their anchor point is 0.5, 0.5. One is an image label, and the other is an image button.

Does anyone know why they might be returning different values. They are off by about 100 pixels.

Are you trying to measure the distance from the edges of the objects? Because if the anchor point is set to .5,.5 then AbsolutePosition will return the position of the center of the object.

I am trying to measure the distance from the center of the objects. The problem is, even though they are in the exact same positions, their absolute position is not the same.