ImageRectOffset help

I have been working on a AFK button and the images are set in one, and i can find each other by setting it’s imagerectoffset, but when i write this script:

script.Parent.ImageRectOffset = 256, 4

It prints as error, what i did wrong?

ImageRectOffset only accepts Vector2 instances. You should probably rewrite it as:

script.Parent.ImageRectOffset = Vector2.new(256, 4)

1 Like