Animating with Socket?

Update: So because the original fbx file contained multiple things it was messing up the gun in blender, so I imported the solo meshes from UE5 and joined them in blender and did the animations there as well.