Walk / Run animation not working

Am using roblox’s animation script. My normal walkspeed is around at 15 meanwhile when sprinting its set to 24. I did notice the walkspeed isnt exactly 15 (14.7… same for running 23.7…). After many tries when walking my running animation execute and not walk. Any ideas how to fix

RobloxAnimate.txt (23.1 KB)
And yes i did replace ids and everything in my normal script