This is my script, But when i shoot it not follow to the point that i set , normally it go to the Z axis, but it not to work … Tried
var BulletPrefab : Transform;
var speed = 200;
function Update () {
if (Input.GetButtonDown("Fire1")){
var Bulletshoot : Transform = Instantiate ( BulletPrefab, GameObject.Find("Spawn").transform.position, transform.rotation);
Bulletshoot.rigidbody.AddForce ( Vector3(0,0,speed));
}
}