# 4.14 Spawn actor from class replicates twice on client

**URL:** <https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880>\
**Category:** Multiplayer & Networking\
**Tags:** client, spawn-actor-from-cla, replicate, actor-blueprint, UE4-14, unreal-engine, question\
**Created:** [November 30, 2016, 7:44am UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880 "2016-11-30T07:44:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [November 30, 2016, 7:44am UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/1 "2016-11-30T07:44:03Z")

</div>

Hello , if you create a blueprint and try to spawn an actor from class and that class is set to replicate, on clients it wil replicate twice . Any fix for this?

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 30, 2016, 6:53pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/2 "2016-11-30T18:53:19Z")

</div>

Hey Axxi,

I’m not seeing the same results on my end. Could you post a screenshot of your setup for me?

What I’m doing is on F, spawning an actor inside of my character blueprint. The spawned actor is set to replicate. When I press F in game, the actor is only spawning once, regardless of if I use the client or server.

---

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [November 30, 2016, 7:44pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/3 "2016-11-30T19:44:57Z")

</div>

Make a new blueprint and in event begin spawn actor from class and on the actor spawned mark replicated on it and then check the client

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 30, 2016, 7:48pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/4 "2016-11-30T19:48:56Z")

</div>

Please provide a screenshot of the blueprint that you’re using when you’re experiencing this error, as I am using your suggested setup and not seeing the same problem.

Thank you

---

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [November 30, 2016, 7:50pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/5 "2016-11-30T19:50:58Z")

</div>

![116945-bptoreplicate.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/c/fbc3bf9e6177fef260806c75aa415c8f1e6ea445.jpeg)

![alt text][2]

 ![116947-ceiling.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/e/0eec73483696a24761147ff21263e82214b105c1.jpeg)

---

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [November 30, 2016, 7:54pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/6 "2016-11-30T19:54:22Z")

</div>

![116948-example.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/9/9897316c7678995c9250a60fb4784aeba9bb8612.jpeg)

and enable physics on it so it can move from the spot

---

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [November 30, 2016, 8:25pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/7 "2016-11-30T20:25:45Z")

</div>

i made a new project with this bug

> **[Dropbox - File Deleted](https://www.dropbox.com/s/ykzpx30ac1ugzef/TestBug.zip?dl=0)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 30, 2016, 8:33pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/8 "2016-11-30T20:33:45Z")

</div>

Where are you spawning the actors? What blueprint class, I mean?

Also, if you could provide a simplified test project, that would be great. I’m not seeing this occur on my end still, even with the same setup.

Thanks for providing the screenshots.

Edit: I just saw the update for the project. I’ll take a look now.

---

<div class="post-metadata">

**Author:** ![Axxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Axxi](https://forums.unrealengine.com/u/Axxi)\
**Post date:** [November 30, 2016, 8:35pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/9 "2016-11-30T20:35:28Z")

</div>

already did 😃

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [December 5, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/10 "2016-12-05T15:04:15Z")

</div>

Hey Axxi,

What I’d recommend is adding a Switch Has Authority after your Spawner’s Event Begin Play and connect the Authority pin to the SpawnActor node. That way you’re only spawning the light actor on the server. That ceiling light blueprint is set to replicate, so once you spawn it on the server it should replicate to the client. However, since it’s simulating physics, the movement of the actor will not replicate identically.

Let me know if you have any further questions, or if I’m misunderstanding your issue.

Have a great day

---

<div class="post-metadata">

**Author:** ![Rainbow\_Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rainbow\_Games](https://forums.unrealengine.com/u/Rainbow_Games)\
**Post date:** [July 12, 2022, 7:58pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/11 "2022-07-12T19:58:07Z")

</div>

Thanks, the switch node helped my issue, I know you were trying to help someone else but it also helped me

---

<div class="post-metadata">

**Author:** ![Maxime66410](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxime66410/32/623689_2.png) [@Maxime66410](https://forums.unrealengine.com/u/Maxime66410)\
**Post date:** [May 5, 2023, 7:37pm UTC](https://forums.unrealengine.com/t/4-14-spawn-actor-from-class-replicates-twice-on-client/377880/12 "2023-05-05T19:37:45Z")

</div>

Yes but for client is actor spawn twice.
