Change rotation

The box you see in the picture spawns a box on its left and moves by sliding to the right.

I want the boxes to move downwards when the trigger hits the box and that’s why I wrote the code below. But it is based on the starting point and adjusts the return accordingly.