Mouse look

so im currently trying to recreate a game that i made in blender in unity and i have run into a bit of a roadblock. The script that i am using has an error that seems to be non-existant to the people that originally made the script. i will post the script that i am using but the error that i am getting is “A name space cannot directly contain members such as fields or methods”
Script

// Move Camera Script

var horizontalspeed : float = 2000.0;
var verticalspeed : float = 2000.0;

function Update () (

    var h : float = horizontalspeed * Input.GetAxis ("Mouse X");
    var v : float = verticalspeed * Input.GetAxis ("Mouse Y");
    transform.Translate (v,h,0);

)

I don’t think your issue is in this part of the code.

Are you declaring a namespace without a class? It’s hard to say without more. Can you post your entire camera script, with the classe.

What extension have you given the script? If I’m not mistaken this error tends to happen when people use .cs for UnityScript.

this is the entire mouse look script that i am using. also what do you mean when you say extension i am quite new to unity scripting