private void SettingGrabPoint()
    {
        Debug.Log("gp not null");
        Debug.Log("Going in method");
        setGrabPoint = gp.SetPosition();
        if (setGrabPoint == null)
        {
            Debug.Log("Shouldn't see this");
        }
        else
        {
            Debug.Log("It worked");
        }
        heldObj.transform.parent = this.transform;
        heldObj.GetComponent <Transform>().localPosition = setGrabPoint.position;
        heldObj.GetComponent <Transform>().localRotation = setGrabPoint.rotation;
        //heldObj.GetComponent<Transform>().localPosition = new Vector3(-0.9656595f, -0.647679f, 0.2662789f);  //this is for the pistol
        //heldObj.GetComponent<Transform>().localRotation = Quaternion.Euler(57.507f, 7.926001f, 10.002f); // this is for the pistol


        //heldObj.GetComponent<Transform>().position = controller.GetComponent<Transform>().position;   old code
        // heldObj.GetComponent<Transform>().rotation = controller.GetComponent<Transform>().rotation; old code
        heldObj.GetComponent <Rigidbody>().isKinematic = true;
        heldObj.GetComponent <Rigidbody>().useGravity  = false;
        //controller.GetComponent<MeshRenderer>().enabled = false;
    }