';' expected insert a semicolon at the end, i've put a semicolon

So apparently there’s something wrong with this line in my script:

Animator animator = GetComponent(Animator);

I get this error. “‘;’ expected. Insert a semicolon at the end.”

How do I fix this please?!

Your line of code doesn’t make sense. The first part looks like C# the second part is UnityScript. So you should either do:

    // C#
    Animator animator = GetComponent<Animator>();
    // or
    Animator animator = (Animator)GetComponent(typeof(Animator));

Or if you use UnityScript

    // UnityScript
    var animator = GetComponent(Animator);
    // or
    var animator = GetComponent.<Animator>();