# Someone help me, problem with replication

**URL:** <https://forums.unrealengine.com/t/someone-help-me-problem-with-replication/483459>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 16, 2021, 2:28pm UTC](https://forums.unrealengine.com/t/someone-help-me-problem-with-replication/483459 "2021-05-16T14:28:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_93785f83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_93785f83](https://forums.unrealengine.com/u/anonymous_user_93785f83)\
**Post date:** [May 16, 2021, 2:28pm UTC](https://forums.unrealengine.com/t/someone-help-me-problem-with-replication/483459/1 "2021-05-16T14:28:37Z")

</div>

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.

 ![338977-img1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/d/48db4c7211d7a0ad882bf808ff73d4fe2c327373.png)

 ![338978-img2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/a/5ca354693720f01407300d9c922372f6d76bb7f4.png)

 ![338979-img3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/6/466c89c40bc23af208654d8f4164c74d215cd44f.png)

video link:

project link:

I will be grateful for the help

---

<div class="post-metadata">

**Author:** ![GarnerP57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GarnerP57](https://forums.unrealengine.com/u/GarnerP57)\
**Post date:** [May 19, 2021, 12:01am UTC](https://forums.unrealengine.com/t/someone-help-me-problem-with-replication/483459/2 "2021-05-19T00:01:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_93785f83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_93785f83](https://forums.unrealengine.com/u/anonymous_user_93785f83)\
**Post date:** [May 19, 2021, 3:49pm UTC](https://forums.unrealengine.com/t/someone-help-me-problem-with-replication/483459/3 "2021-05-19T15:49:07Z")

</div>

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!
