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
![](https://koobas.hobune.stream/wayback/20220612131557im_/https://answers.unity.com/themes/thub/images/avi.jpg)