Simple Bullet Script Help

Hello guys, im just curious how can i make a simple shooting script for a gun, all i really need is to make it shoot a bullet with the force of 2000. Heres a script i have worked on but it doesnt work.

The script:

var bullet : Transform;
var Force = 2000;

function Update ()
        var shot = Object.Instantiate(bullet, transform.position, transform.rotation, 0);
        shot.rigidbody.AddForce(transform.forward * Force);

So when instantiating an object. Its not needed of a 4th parameter.
You have:


When the only acceptable format is:


Removing the “, 0” at the end of the Instantiate line should do the trick.