fireball script

my script

i dont really know what wrong with it
var speed = 3.0;
var rotateSpeed = 3.0;
var bullitPrefab:Transform;

function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
transform.Rotate(0, Input.GetAxis (“Horizontal”) * rotateSpeed, 0);
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis (“Vertical”);
controller.SimpleMove(forward * curSpeed);

if(Input.GetButtonDown(“Jump”)

Bullit = Instantiate(bullitPrefab,Gameobject.Find(“spawnPoint”).transform.position, Quaternion.identity);
}

@script RequireComponent(CharacterController)

Whats wrong is you seem to have just grabbed a piece of code, and you cant make a game this way.

Even if someone solves this problem, you’ll have more questions, and so on, unless you learn the individual components at least enough to ask a proper question.

We can help you to help yourself, or we can help you to be helpless, which do you prefer?

However, it looks like you need

BullitPrefab = Instantiate(bullitPrefab,Gameobject.Find(“spawnPoint”).transform.position, Quaternion.identity);
}

your words inspire me thnks i shall try to find how to do it individualy