[HELP] Having trouble with animations when sprinting.

So I am trying to make it so when I press shift I sprint, and while sprinting it plays the sprinting animation, and when I let go of shift it goes back to the regular walking animation. But what’s happening is when I let go of shift it stays on the sprinting animation and only changes the speed back to the walking speed.

Thank you in advance!

Are you using a blend space for the animations?

Then you need to control that blend space speed variable through an anim blueprint: