How to make a block move only up and down

Im trying to make a block move up and down on my level but it just moves on the x axis back and forth here is my game if you can find any errors

you have to switch the properties go up instead of right in forward. remove the always to the position. make it so it is toggle instead of flip on the flip. and make a delay in the collision.

thank you