# How can I replicate this code?

**URL:** <https://forums.unrealengine.com/t/how-can-i-replicate-this-code/1222281>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [July 7, 2023, 12:58pm UTC](https://forums.unrealengine.com/t/how-can-i-replicate-this-code/1222281 "2023-07-07T12:58:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SevenToaster509](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seventoaster509/32/726325_2.png) [@SevenToaster509](https://forums.unrealengine.com/u/SevenToaster509)\
**Post date:** [July 7, 2023, 12:58pm UTC](https://forums.unrealengine.com/t/how-can-i-replicate-this-code/1222281/1 "2023-07-07T12:58:18Z")

</div>

I’ve been trying to learn replicating for a while. I have this code here,([https://dev.epicgames.com/community/snippets/oY2d/unreal-engine-needs-replicating](https://dev.epicgames.com/community/snippets/oY2d/unreal-engine-needs-replicating)).

I know it’s messy (will clean up later), but how can I go about replicating it? This is using the First Person Template and a physics handle. The server can grab and stuff, and the client can too, but, it doesn’t replicate

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [July 7, 2023, 1:08pm UTC](https://forums.unrealengine.com/t/how-can-i-replicate-this-code/1222281/2 "2023-07-07T13:08:56Z")

</div>

Getting a 404 error on that link, might not have permissions?  
Best post contents here.

Meanwhle:

> [Multiplayer Network Compendium | An Unreal Engine Blog by Cedric Neukirchen](https://cedric-neukirchen.net/docs/category/multiplayer-network-compendium)

> [https://www.youtube.com/watch?v=JOJP0CvpB8w](https://www.youtube.com/watch?v=JOJP0CvpB8w)

---

<div class="post-metadata">

**Author:** ![SevenToaster509](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/seventoaster509/32/726325_2.png) [@SevenToaster509](https://forums.unrealengine.com/u/SevenToaster509)\
**Post date:** [July 7, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/how-can-i-replicate-this-code/1222281/3 "2023-07-07T15:52:26Z")

</div>

Can you try again? I think I published it this time

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [July 7, 2023, 8:26pm UTC](https://forums.unrealengine.com/t/how-can-i-replicate-this-code/1222281/4 "2023-07-07T20:26:06Z")

</div>

Yep link works now. What specific parts do not replicate?  
There are a few posts providing documentation on this.  
Enable component replication, replicate specific properties, ensure server is owner and cause of transformations:

> [Simple replicated physics jittering](https://forums.unrealengine.com/t/simple-replicated-physics-jittering/789849)

> [Component Replication | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Networking/Actors/Components/)
