Weird question, I know. I'm working on a plugin that has a moving ImageButton (randomized one) and I want to flip it based on the direction it moves. Is here any property that would help me, or an article? Some links would be really helpful!

Oh, and so far I tried that:

local x2 = x - script.Parent.ImageButton.Size.X.OffSet

if x2 < 0.5 then
       print("Right")
       else
       print("Left")
end

Thanks for reading!