Don't know why crouch animation is not working

From the input action of pressing the crouch button, make sure it’s actually setting crouch to true when pressed and set it to false when released. So just add it onto the crouch and uncrouch you already have.