How do I make my character do a jump animation when the player presses space?

I want my character to preform a jump animation when the player presses the play store. I am using the unity standard assets package, and nothing I do works. I can walk, run, and crouch, but it is literally impossible to do anything else. Can someone please help me?

Assuming you have an animator set up already:
Inside of your jumping logic put GetComponent().Play(“Jump” Or whatever the animation name is);

If you don’t have the animator set up, find an Animator tutorial on youtube. Try looking at Brackeys.