I found that doing:
repeat wait() until UI_ELEMENT.AbsoluteSize.X > 0
print(UI_ELEMENT.AbsoluteSize.X)
Fixed this issue for me
I found that doing:
repeat wait() until UI_ELEMENT.AbsoluteSize.X > 0
print(UI_ELEMENT.AbsoluteSize.X)
Fixed this issue for me
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.