Locations at the top of the screenshots.
Create new function in the BP_PlayerInventoryComponent called Attachments Weight. Create a new input and set the variable type to S_WeaponAttachments
and name the input Attachments. Also add an out put of type float. Shown in image above.
Also create a new local variable called Attachment Weight L and set type to a float.
Inside the function copy the image below. to get the Break S_WeaponAttachments drag out from the Attachments pin and search for break to get the node.
Create a new variable called attachments set to the variable type attachments. and copy the above
Add the nodes shown in the above image.