What is the best way to reload animations when the id was changed?

So I’m trying to make a shift to sprint script but there is a problem,
in order for the sprinting animation to play I would have to stop moving, and then move again. (Because I am setting the walking animation to my desired sprinting animation)

How would I reload the animation without forcing the player to stop moving?

instead of changing the animation, load and play the new sprinting anim, it will take over the walking anim