Just wait. I don't know what happened. I was working on a wave thing, I can't figure out what happened... Also, if you click on stuff you can make it extra weird.
Update: I figured out what was happening. It starts slowly going down, but because of the code, when it crosses the origin they change the direction, causing it to go back up.