Ello~ I need help with transform.parent = null; When I play it and press the DropWeapon input button it goes in a random location and doesnt move .
     if( Input.GetButtonDown("DropWeapon"))
     {
         transform.parent = null;
         glockrb.AddForce(-transform.forward * 520);
         glockrb.useGravity = true;
     }
 
              
               Comment
              
 
               
              Your answer