VR - How to grab object and move it only in Z axis

Right now you’re setting the object’s x and y values to be 0, so it’s kind of snapping to the world origin, not counting the z. You gotta put in its current values so they won’t change.