Walk and run animations

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I would like to be able to have a script that detects when a player is moving and if shift is pressed or not. If shift is pressed then play the run animation and go to a certain speed. If it isn’t pressed then play the walk animation and go to a certain speed.

  2. What is the issue? Include screenshots / videos if possible!
    I tried writing a few scripts that ended up wrong. I would need some help making one.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried looking around and found wrong solutions. The ones i found didn’t work or were to complicated to put in the game.

Could you post what you’ve got already?

i have nothing. What i tried to do was play the animations, but they didn’t play correctly so i deleted them.