Help with a ui that bounces when it hits the corner of the screen

Ok so I just want to remake something like the DVD screensaver just for fun, can anyone help me out with this?

The easiest way would be to have a variable to what direction it moves both on X and Y then move it in that direction with while loop and if the position is too close to any edge change the variable of said axis,you may want to make it so it changes how much on an axis it moves depending of how close it was to reaching the edge on said axis (atleast the easiest way i can think of)

just use tween service its very easy

Yeah keep forgetting that’s a thing, also i just like loops more ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯