Animation & Script Help

First, Im new to Unity so i would like to make an animation, a very simple one. I have a First Person Controller holding a knife and i would like to make an animation so i swing the sword, easy. But, i need to also set up a basic script, just like GetButtonDown(“Fire1”)
And this would trigger the animation,

I meant to say GetKeyDown, and all i have to do is get the script to play the animation when i left click

Use animation.Play(“your animation’s name”);