# Spawn pawn from widget (multiplayer)

**URL:** <https://forums.unrealengine.com/t/spawn-pawn-from-widget-multiplayer/443629>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, spawning, unreal-engine, Multiplayer, UE4, Blueprint, question\
**Created:** [February 18, 2019, 4:54pm UTC](https://forums.unrealengine.com/t/spawn-pawn-from-widget-multiplayer/443629 "2019-02-18T16:54:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JustNatBros](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JustNatBros](https://forums.unrealengine.com/u/JustNatBros)\
**Post date:** [February 18, 2019, 4:54pm UTC](https://forums.unrealengine.com/t/spawn-pawn-from-widget-multiplayer/443629/1 "2019-02-18T16:54:46Z")

</div>

When my game starts I open a widget with buttons for types of characters. What I want to do is press a character button which spawns a pawn of that character in the level. However, I read that I shouldn’t do spawning logic (and in the future possessing) in the widget. So I created an event in the Game Mode which will spawn a character in the world, however, I want this to work with multiplayer and I read that clients can’t access the game mode.  
How do I get around this problem? Is there somewhere else I should be doing the spawning logic?

- 

Select character buttons

 ![268923-ue4-help-14.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/f/43f4ef2df860f3d4ceccc987ab2f948ad00b4a0c.png)

Spawn character pawn logic in GameMode

 ![268924-ue4-help-15.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/8/d981aad0456cf65f1d52a871b900d4aac593f7d5.png)

---

<div class="post-metadata">

**Author:** ![Blackforcedragon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blackforcedragon/32/1010299_2.png) [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Post date:** [February 18, 2019, 5:27pm UTC](https://forums.unrealengine.com/t/spawn-pawn-from-widget-multiplayer/443629/2 "2019-02-18T17:27:03Z")

</div>

In the widget Blueprint under Class Default, did you see under the Replication?

 ![268928-h2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/7/5278e6eedb0922c1a915d7289bde2814a47a649d.png)

---

<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:** [February 18, 2019, 7:21pm UTC](https://forums.unrealengine.com/t/spawn-pawn-from-widget-multiplayer/443629/3 "2019-02-18T19:21:56Z")

</div>

Yes Widgets can’t be replicated and the GameMode only exist on the server so you need another replicated Actor to execute a RunOnServer Event.  
The PlayerController or a Possessed Pawn can be used for this or any other replicated actor spawned by the server owned by the client PlayerController.  
When the button is pressed you use the PlayerController/Pawn/ClientOwnedReplicatedActor to execute the event on the server and that should be it.

---

<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:** [February 18, 2019, 7:23pm UTC](https://forums.unrealengine.com/t/spawn-pawn-from-widget-multiplayer/443629/4 "2019-02-18T19:23:08Z")

</div>

UserWidgets don’t inherit from the Actor Class and therefore can’t be Replicated.
