AbsoluteSize returning 0 when clearly not

I found that doing:

repeat wait() until UI_ELEMENT.AbsoluteSize.X > 0
print(UI_ELEMENT.AbsoluteSize.X)

Fixed this issue for me

1 Like

I’m extremely late, and you probably won’t see this, but to anyone who ever stumbles across this post looking for a solution to this issue, the problem is that the GUI is not loaded yet. To wait until it loads:

repeat wait() until GUI.AbsoluteSize.X > 0

This line makes the script pause until the GUI is loaded.

1 Like