Smooth crouching and sprinting problem

Boolean for Is Crouching and attach it to the beginning of your sprinting script - effectively asking if the character is crouching or not before the sprint is activated. to set the bool…do with your crouch commands. when you press cntl and crouch set it to true thusly stopping the sprint.