Projectile script wont work?

Im trying to make an fps and my projectile script wont work. Ive gone ahead and created the explosion prefab but it still wont work. Someone help me please. Heres the error code: Assets/Weaponscript/Projectile.js(7,13): BCE0005: Unknown identifier: ‘explosion’. And heres the 7th line: Explosion, contact.point, rotation );

Nobody can help you with so little information provided. Paste the whole script here.

ok heres the script:
1:function OnCollisionEnter( collision : Collision )

3:{
4:var contact : ContactPoint = collision.contacts[0];
5:var rotation = Quaternion.FromToRotation( Vector3.up, contact.normal );
6:var instantiatedExplosion : GameObject = Instantiate(
7:explosion, contact.point, rotation );
8:smile:estroy( gameObject );
9:}

function OnCollisionEnter( collision : Collision )
{
var contact : ContactPoint = collision.contacts[0];
var rotation = Quaternion.FromToRotation( Vector3.up, contact.normal );
var instantiatedExplosion : GameObject = Instantiate(
explosion, contact.point, rotation );

Destroy( gameObject );
}

You should define the variable “explosion” in that script, and assign it via the inspector. Put this in your script (outside all functions):

var explosion : GameObject;

And in inspector assign the explosion prefab to that variable