Reverse the y

i have made a little game

on the right hand side the horizontal line is supposed to represent how high the ball is. The line kind of moves but it doesn’t work. Its supposed to start at the bottom and the higher the ball goes, the higher the bar goes. Does anyone know what to do?