Walking and sprinting animation while jumping bug

  1. So recently I have started developing a game, and I have run into my first problem with animations. There are two animations, walking and sprinting, and it all works fine until you jump while sprinting, which resets the animation and plays the walking animation while still sprinting.

  2. Here is a video of the issue: https://gyazo.com/e02ab4abd5c36fbca8a352fff2d5f3cd

  3. Please, if you have any suggestions, fixes, or questions, please leave a comment, thank you. Max

can you show us your script? 30chars

So the default run animation uses this animate script
https://gyazo.com/ae7a74bddb94d32e91125f3ad3d5e0b0

While the sprint animation is integrated into sprint script:
https://gyazo.com/01d3758c1d727343f3a54d738b1fd5c0

its probably because ROBLOX thinks that you let go of the shift button to press the space bar, because functions only last so long