How to retain velocity when player jumps

As an example I’m going to use arsenal, when you are running and lets say jump off a block you keep the velocity you had from walking, how would I re-create this effect? I’ve been thinking and trying for a while and I cant find anything about it.