My character's jump animation play's when it's not suppose to?

Sorry for not replying for so long! And alright, sounds good! But if I make it to where the jump animation plays as long as the character is falling and the space bar is pressed, won’t the jump animation keep playing if I press space in the air, even if my character doesn’t have any more jumps left? Is there a way to fix that and keep that from happening? I only want it to play for that one jump.