Replicating attachcomponenttocomponent

Hello,
I am having some trouble replicating an attachComponentToComponent node. I am using it to attach a weapon mesh to my character’s mesh. When I run the node on the server, while playing as a client, it attaches the static mesh to my character, but it also spawns a second weapon mesh where the character is standing, completely disconnected from my character. How can I avoid this extra spawn? Running the game as a listen server attaches the weapon just fine, with no second mesh. Thank you in advance!

Edit: Found out I was activating a second mesh in another BP. Resolved!

Try unticking “Component Replicates” as when you are executing an RPC it’s replicating it at the time and doesn’t always need to be checked or it’ll spawn twice.

Another thing to try is if that only the server has authority to spawn the item. Use a Switch Has Authority node and run switch to the spawn actor and from the remote, go around that node to finish the execution chain if that makes sense. This way only the server will spawn it and the client doesn’t try to as well.