BCE0044 error

var projecile : Rigidbody;
var speed = 20 ;

funotion Update{}{
If (Input.GetButtonDown(“Fire1”));
{
var instantiatedProjectile : Rigidbody = Instantiate( projectile, transform.position, transform.rotation);
instantiatedProjectile.velocity = trasformDirection(Vector3( 0, 0, speed));
Physios.IgnoreCollision( instantiatedProjetile.oollider, transform.root.oollider);
}
}

I do not understand the error. I do not understand because me 13 years old :slight_smile:
but my error on line 5

function” is misspelt on that line.

When the compiler gives you an error like this it is very explicit. It tells you what it is expecting (but cannot find) or what it is not expecting (and does not understand). It usually tells you the line and character that it is having trouble with.

Learning to use these messages is a very important skill for a programmer.

it is not necessary. while I waited for the answer I have already solved the problem