Assets/MY PROJECT/Scripts/BulletHoles.js(16,47): UCE0001: ';' expected. Insert a semi

I was making a gun script with JavaScript. I came across this issue and it has me confuzzled lol. I am fairly new to Unity so help will be greatly appreciated. I have my script listed below:

#pragma strict



var bulletTex : GameObject[];


function Start () {

}


function Update () {


	var fwd : transform.TransformDirection(Vector3.forward);
	var hit : RaycastHit;
	Debug.DrawRay(transform.position, fwd * 40, Color.red);
	
	
	if(Input.GetButtonDown ("Fire1")  Physics.Raycast(transform.position, fwd, hit, 40)){
	
		Instantiate(bulletTex[Random.Range(0,2)], hit.point, Quaternion.FromToRotation(Vector3.up, hit.normal));
		
		}

}

At line 16, you have to replace the : by =. A colon after a variable declaration means, that you are telling it the actual type. That would look as follows:

var fwd : Vector3;

But as you are not telling it which type it is, but instead you want you assign an actual value, you have to use the equal character.

You are trying to do too much in one line:
var fwd : Transform = transform;
fwd.TransformDirection(Vector3.forward);

Thanks Dantus and fire7side, both of you were right. Everything works now!!! Thank you very very much!