unity3d add to z axis

SO I’m making a parkour game, I have it so I can walk up to a wall, and i’ll climb up, but I need to go forward. How would I add a number to the z axis?

use this in update.

transform.Translate(Vector3.forward);

If you want to add value to a particular coordinate you have do it like this.

transform.position = new Vector3(transform.position.x,transform.position.y,transform.position.z + 1);

transform.position += transform.forward * 0.5f;

Adjust the 0.5f depending on how much you want to move forward.