Script mistake?

Hi, I want to make an animation play when you click the mouse button. What's wrong with my script? It says there is a compiler error, something about a semicolon.

function Update () { if (GetButtonDown); "Fire 1" Instantiate; "Sword Swing" } }

Your syntax is all wrong. I recommend working through some tutorials before proceeding much further.

Also, check out the docs for the functions you're using, look at the examples given there, and see how they differ from your example. (It looks like the example for GetButtonDown() is similar to what you have there, so it should serve as a good reference for you.)