I can shoot a rigid-body but how can I make the object I am shooting invisible? Any suggestions or tutorials. here Is my code if someone want to try and modify it. Any thing would be useful. Thank you for all the help. (The script in in java)(sorry if the code comes out funky)
var bullet: Rigidbody;
var speed = 50;
var AMMO = 5;
var c : AudioSource;
function Update()
{
if(Input.GetButtonDown("Fire2"))
{
if(AMMO > 0)
{
animation.Play("shoot");
audio.Play();
var clonedBullet : Rigidbody = Instantiate(bullet,transform.position,transform.rotation);
clonedBullet.velocity = transform.TransformDirection(Vector3(0,0,speed));
AMMO --;
}
else{
c.audio.Play();
animation.Play("reload");
AMMO = 5;
}
}
}