So im watching a YouTube tutorial by Roblox on how to script a moving platform at the 9 min mark, and given how im so new to scripting, I have reached a problem and cannot figure out how to solve it.
This is my code, and when I run the game, the platform moves up diagonally, and stops.

Am I doing something wrong, what would be the way to fix this?