Someone help me, problem with replication

Hello, I am new to multiplayer, when I don’t replicate the variables it works perfectly, but I have to replicate them, in the video you’ll understand what I’m talking about, I’ll also give you the link to the project, if you want to see it.

video link:

project link:

I will be grateful for the help

This is all you need to do.

  1. Call a RunOnServer event from the Input event (no need to check for authority since only one player can possess and thereby give input to a pawn at a time.
  2. From the RunOnServer Event (server side) do the AttachActorToComponent

Ensure that the weapon class is replicated.

GarnerP57, Thank you very much for helping me, I did what you said and it worked,
I’m starting now, and I’m learning a lot.
Thanks again for answering me.
success for you!