Sprinting and Crouching Problem

I figured out the sprinting by adding a branch to my movement speed function, and I also got the player to correctly play the animations. However, the character starts floating in the air when the animations play unless he’s under a platform, where he stays grounded.