here it is (javascript)
//Shooting
var bullitPrefab:Transform;
function update (){
if(Input.GetButtonDown("Fire1"))
{
var bullit = Instantiate(bullitPrefab, GameObject.Find("Cylinder0").transform.position, Quaternion.identity);
bullit.rigidbody.AddForce(transform.forward * 2000);
}
}
and i dont get any errors and everything is named correctly it just doesnt seem to work.