# Blueprint Runtime Error with Replication

**URL:** <https://forums.unrealengine.com/t/blueprint-runtime-error-with-replication/1937505>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 14, 2024, 10:31pm UTC](https://forums.unrealengine.com/t/blueprint-runtime-error-with-replication/1937505 "2024-07-14T22:31:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheYolloGamers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheYolloGamers](https://forums.unrealengine.com/u/TheYolloGamers)\
**Post date:** [July 14, 2024, 10:31pm UTC](https://forums.unrealengine.com/t/blueprint-runtime-error-with-replication/1937505/1 "2024-07-14T22:31:37Z")

</div>

Hello Guys i have a little Problem i followed a video how to Pickup guns ect  
and i am Trying to get it working in Multiplayer so i Replicated it  
it also works both Client and Server can pick up and see it  
but after i Close the test i get this error

 ![Bild_2024-07-14_225241631](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/d/c9db2bc6218ecd1acee82041a746b4ad87839e19.png)

on my Second Spawn Actor cant get my Class to my Client Pickup but without it the Replication doesnt work. sry fo my bad english i just add some Pics

So this is how i solved it but create the Error and some times the UE5 crashes

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/0/cc0b9686f699083bbbc13a4e28311ae09faefd61.png)

and this is how it looks after UE5 Crashed

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/2/1f2f6fe6bf7141c994e6e111f229cfef4885375c.png)

i hope its understandable

---

<div class="post-metadata">

**Author:** ![PREDALIEN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/predalien/32/1194670_2.png) [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Post date:** [July 15, 2024, 9:23am UTC](https://forums.unrealengine.com/t/blueprint-runtime-error-with-replication/1937505/2 "2024-07-15T09:23:21Z")

</div>

You need to set the Class pin type to BP Weapon Master Class in a custom event.  
Or change the type of the CurrentWeapon variable to Actor.  
Or add cast to BP Weapon Master after the second spawn.
