Open the BP_MasterAttachment then create a new Primitive Component variable called AttachedTo then set the variables Replication to RepNotify. Then open the OnRep_AttachedTo function and copy the image below.

Compile then open the BP_MasterWeapon and open the AddNewAttachment function then add the nodes shown in the image below.
