how to make it so that the object that remains inside the weapon in the same place? (but the object needs to be inside)
private float RMin;
RMin = gameObject.transform.localRotation.z;
"objectomove".transform.RotateAround(transform.position,Vector3.forward ,(RMin =-"objectomove".transform.rotation.z * 500) * Time.deltaTime);