// Use this for initialization private void Start() { if (grabbingHand == null) { grabbingHand = GetComponentInChildren <GrabHandScript>(); } if (grabbingHand == null) { Debug.LogError("NoHandScript"); } originalTransform = ((GameObject)Instantiate(emptyGameObject, transform.position, transform.rotation)).transform; originalTransform.parent = transform.parent; }