My bullet wont move forward

So my script wont work…

var Bullet : Rigidbody;
 var Spawn : Transform;
 var BulletSpeed : float = 1000;


function Start () {
 
}
 function Update () {
 if(Input.GetButtonDown("Fire1")) {
 Fire();
 }
 }
 
function Fire(){
 var bullet1 : Rigidbody = Instantiate(Bullet,Spawn.position,Spawn.rotation);
 bullet1.AddForce(transform.forward*BulletSpeed);

}

the bullet is created but wont move!

Edit :

This image shows the Inspector settings : This is the Gun - Album on Imgur

You didn’t have your instantiation defined correctly. The new “bullet1” needs to be set as a “clone” pretty much. You just had var bullet1 : Rigidbody; then your instantiate command for Bullet. It needs to be var bullet1 = Instantiate(Bullet… Because when you were adding force to bullet1, it was null. It’s also a good idea to disable gravity on this rigidbody since it’s going to be used as a bullet. As well, set the collision detection to Continuous Dynamic if you want it to be able to detect such fast collisions. I just used mousebutton 0 (left click) here so I could test it ( I don’t have Fire defined.) You actually may have had the first part set up right, the format on this site is making it show up wrong. But if you try this script, it will work.

var Bullet : Rigidbody;
var Spawn : Transform;
var BulletSpeed : float = 1000;
var fwd : Vector3;

function Start () 
{

}

function Update () 
{
    fwd = transform.TransformDirection(Vector3.forward);
    if(Input.GetMouseButtonDown(0)) 
    {
        Fire();
    }
}

function Fire()
{
   	var bullet1 : Rigidbody;
   	bullet1 = Instantiate(Bullet, Spawn.position, Spawn.rotation) as Rigidbody;
   	bullet1.rigidbody.useGravity = false;
   	bullet1.rigidbody.AddForce(fwd * BulletSpeed, ForceMode.Impulse);
}