System.Object.Instantiate

When I do my script this error comes up…

var speed = 24.0;
var rotateSpeed = 3.0;
var bullitPrefab:Transform;

function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
	
// Rotate around y - axis;
transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
	
// Move forward / backward
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis ("Vertical");
controller.SimpleMove(forward * curSpeed);
	
if(Input.GetButtonDown("Jump"))
	
var bullit = Object.instantiate (bullitPrefab, GameObject.Find ("Spawn Point.transform.position, Quaternion identity"));	
			
		 
RequireComponent(CharacterController);;

}

These last lines have a lot of errors:

if(Input.GetButtonDown("Jump"))
	
var bullit = Object.instantiate (bullitPrefab, GameObject.Find ("Spawn Point.transform.position, Quaternion identity"));	
			
		 
RequireComponent(CharacterController);;

1- The second line should be:

var bullit = GameObject.Instantiate(bullitPrefab, GameObject.Find("Spawn Point").transform.position, Quaternion identity);

2- The third line should be declared outside any function, and start with @script:

@script RequireComponent(CharacterController);

But you can delete this line if you want - it’s there just to ensure that this script will only be attached to a CharacterController owner, and you have a lot of other problems to worry about.

3- When pressing the “Jump” button, a bullet will be instantiated at the “Spawn Point” object position, and at most will fall to the ground (if it has a rigidbody and Use Gravity set). You will need additional code to accelerate the bullet, and also an empty object called “Spawn Point” childed to the player. In a brief, you’d better watch the Tornado Twins tutorial and do it right (that’s the source of this “bullit” piece of code).