Default to walking instead of running

Hopefully this topic is in the right category, I’m not sure where to put it.

What do you want to achieve?
I’d like for a character, when W is pressed, to play a walk animation instead of a run animation.

What have you tried so far?
I’ve changed the humanoid walk speed and changed the run animation to a walk animation, but that seems a bit hacky.**

Is there a way I can do this in a script, rather the previous method I’ve stated?

Thanks!

It is not hacky, it is the most obvious and right solution. As reasonable as it sounds, you can’t change player’s animation without changing player’s animation.

If you want to do it in a script, just do the same thing in a script.

Well, that was simple. Thanks for assuring me on it, I’m not a very talented scripter haha.