How to move an object in only on axis?

How do i move an object in only one axis? So I’m currently working on in a game in which the player will be moved 500 studs up to another part of the map. The player will be able to switch between these two parts of the map on the fly.
So basically what i want is for the player to press a key and be moved 500 studs up. After this the player will be able to press again to move 500 studs down.

1 Like

Simply add a Vector3 with only one of the axes, like Vector3.new(0, 500, 0)

1 Like