run and walk script

hi there I was wodering if anyone new of a script that can change charecter controller speed on the default first person controller when i press a button like TAB for instance?

script it in. If Im not mistaken , theres a speed variable in the controller script (cant remember i always write my own, with a speed variable).

Than just set up a hotkey to interpret when the speed of the controller needs to be multiplied for running.

EG :
… somewhere appropriate within the controller code …

if(Input.GetAxis("ToggleRun")){
   speed *= runMultiplier;
}

Note : you must create the ToggleRun entry in the “Input” settings for Unity. And you must create the new runMultiplier variable. But all in all, its easy to adjust that script to work using this logic.

I would look into Component.GetComponent and Input.GetKeyDown.
If you want to edit the original character script, use willc’s way.