Another camera drag script, can anyone figure out these errors?

So I am working on another camera drag script (for a top-down perspective game).

function Update (){
	if(Input.GetMouseButtonDown(0)){
		Scroll ();
	}
}



var startcoords : Vector3;


function Scroll (){
	for(Input.GetMouseButtonUp(0) = true){
		startcoords = Input.mousePosition;
		WaitForSeconds(0.5);
		Transform.Translate(Input.mousePosition - startcoords);
	}
}

I get two errors, Both asking for things that should not be there. I know that computers do not make mistakes, but this troubles me quite a bit.

-Thanks, javascript only

I removed my previous answer after Googling what a camera drag script is, I think you want this