Climbing up a ladder

Hello there, I’ve been stuck on this problem for a while now, I just can’t seem to make the character move along the Z-axis, I’ve tried so much from trying to change his movement mechanics to switching off gravity.
It’ll be a lot of help if someone could help.
Cheers and thanks.

You have to set movement mode to flying while climbing then set it back to walking once you reach the top or bottom. Then you either use root motion to move character up and down or fake it by moving character in the correct axis while having the animation play