ui is for pinning the overlay to the screen, so when you zoom in or pan the a different zone, the overlay stays in place on the screen.
How are you using ui? You shouldn’t be getting any errors if you just replace the word “overlay” with “ui”
@ui OVERLAYNAME scales to 1.0 1.0 in 0