bullet issue

got a bullet made and set up to a prefab and added to my main object but when space is pressed nothing happens any ideas

var bullet:Rigidbody;

    if (Input.GetKeyDown("space")){
               var tempbullet: Rigidbody;
               tempbullet = Instantiate(bullet,transform.position,transform.rotation);`

Yeah should be GameObject I guess. I also don’t think you need the tempbullet variable.

The only thing I could imagine if everything is attached and assigned properly is that your snippet isn’t within the Update method.

var bullet:Rigidbody;

function Update()
{
    if (Input.GetKeyDown("space"))
    {
           var tempbullet: Rigidbody;
           tempbullet = Instantiate(bullet,transform.position,transform.rotation);
    }
}

nope it all in the right place im gonna have a friend go over the attchments and assigned stuff see what he thinks