Question by 
               silentlyreborn109 · Jan 29, 2018 at 05:52 PM · 
                c#instantiateerror messageshooting  
              
 
              Keep getting an error saying game object is missing but everything is working just fine just a spam of errors.
when i shoot a bullet it comes out everything works fine but i keep getting an error saying
"the referenced script on this behaviour (gameobject ) is missing"
but like i said when you shoot everything works fine here is the code the error says its in row 29 ill mark it to show
//The Bullet instantiation happens here. GameObject Temporary_Bullet_Handler; right here -------> Temporary_Bullet_Handler = Instantiate(Bullet, Bullet_Emitter.transform.position, Bullet_Emitter.transform.rotation) as GameObject;
         Temporary_Bullet_Handler.transform.Rotate(Vector3.left * 90);
        
         Rigidbody Temporary_RigidBody;
         Temporary_RigidBody = Temporary_Bullet_Handler.GetComponent<Rigidbody>();
         
         Temporary_RigidBody.AddForce(transform.forward * Bullet_Forward_Force);
         
         Destroy(Temporary_Bullet_Handler, 10.0f);
 
              
               Comment
              
 
               
              Your answer