make a character charge

I want to make it so when I press a key my character charges really fast in a certain direction. So all other movement controls would be disabled and it would almost be like your character just sprinted forward or lunged really fast.

When your character is in that mode, clamp the horizontal axes between 0 and a small value, and clamp the vertical between something slightly smaller than 1, and one. Could play with forwardspeed to, assuming it’s a character controller with character motor.