# Can't destroy niagara laser beam component on client

**URL:** <https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, question\
**Created:** [April 7, 2023, 3:30am UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221 "2023-04-07T03:30:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deedox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deedox](https://forums.unrealengine.com/u/deedox)\
**Post date:** [April 7, 2023, 3:30am UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221/1 "2023-04-07T03:30:16Z")

</div>

Hi, I have created a laser pointer for my VR character… The app is MP so I have to replicate this properly. I have tried Multicasts wit RunOnServer Events and the beam gets replicated but I wont get destroyed on the client when I release the button.  
I would be thankfull for any advice.  
Thanks in advance

 ![laser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/d/75d4dc0e03ec95a69797a7e8b43ad88be9308630.jpeg)

---

<div class="post-metadata">

**Author:** ![StevenHammon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stevenhammon/32/88719_2.png) [@StevenHammon](https://forums.unrealengine.com/u/StevenHammon)\
**Post date:** [April 7, 2023, 5:20am UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221/2 "2023-04-07T05:20:10Z")

</div>

You have the reference replicate. With Multicast, every single instance of that on every single machine runs it. So the server gets it’s own reference, and that will then replicate over to all the other clients that already got their own reference from the multicast. So I’d stop that from replicating and have each client have it’s own reference to it’s own spawned system.

Additionally, you can tick “Auto Destroy” on the “Spawn System” node.

---

<div class="post-metadata">

**Author:** ![deedox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deedox](https://forums.unrealengine.com/u/deedox)\
**Post date:** [April 7, 2023, 4:46pm UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221/3 "2023-04-07T16:46:55Z")

</div>

Hi Steven, thank you for the quick response. Not sure how to achieve this… How I can make each client have its own reference? Thanks

---

<div class="post-metadata">

**Author:** ![StevenHammon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stevenhammon/32/88719_2.png) [@StevenHammon](https://forums.unrealengine.com/u/StevenHammon)\
**Post date:** [April 8, 2023, 1:27am UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221/4 "2023-04-08T01:27:20Z")

</div>

You already do. You call a Multicast. This means every PC runs the code as if it’s a single player game, all getting their own references to their own spawned systems, completely separate from all the others. LaserMulti runs on ALL computers. They all get their OWN spawned system. They ALL get their own reference straight after. But because the reference is set to replicate, then the Server reference overwrites all the other computer references. Just have it set to not replicate and the server won’t wipe all the client based references and replace them with it’s own.

---

<div class="post-metadata">

**Author:** ![deedox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deedox](https://forums.unrealengine.com/u/deedox)\
**Post date:** [April 8, 2023, 4:05pm UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221/5 "2023-04-08T16:05:08Z")

</div>

Okay I removed the replicate on the reference object but its still not working as it should. The Client can see the servers laser but it not gets turned off when I release the button and the server can only see his own laser the client’s is invisible.

 ![usrimg_3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/9/b593324ad2099776f327a27b4f9d2811633326c0.jpeg)

---

<div class="post-metadata">

**Author:** ![deedox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deedox](https://forums.unrealengine.com/u/deedox)\
**Post date:** [April 24, 2023, 1:31am UTC](https://forums.unrealengine.com/t/cant-destroy-niagara-laser-beam-component-on-client/868221/6 "2023-04-24T01:31:24Z")

</div>

Thank you. The ServerEvent was set to multicast 🙂 Everything works as it should.
