GetComponent is not a generic defintion error? (167779)

Hi, I am new to coding and I was working on a javascript which would allow my character to pick up and drop down a game object on mouseup and on mousedown. But unity Api Updater is saying that “GetComponent” is not a generic definition. I`ve been trying for quite some time now to figure out what the heck it means. Here is the code:

var onhand : Transform;

function Update () {

}

function OnMouseDown() {
	GetComponent.<Rigidbody>.useGravity = false;
    this.transform.posistion = onhand.posistion;
    this.transform.parent = GameObject.Find("FPSController").transform;
    this.transform.parent = GameObject.Find("FirstPersonController").transform;

}

function OnMouseUp() {
    this.transform.parent = null;
    GetComponent.<Rigidbody>().useGravity = true;
}

Haven’t been using Unityscript for a long time now but if I’m not mistaken the way you call generic methods is not with that syntax in it. Try below (Unityscript programmers, feel free to correct me if it’s wrong);

GetComponent(Rigidbody).useGravity = false;

function OnMouseDown() {
GetComponent..useGravity = false; // This line missing () after
this.transform.posistion = onhand.posistion;
this.transform.parent = GameObject.Find(“FPSController”).transform;
this.transform.parent = GameObject.Find(“FirstPersonController”).transform;
}