# Create Widget Returns null if play as Client

**URL:** <https://forums.unrealengine.com/t/create-widget-returns-null-if-play-as-client/500640>\
**Category:** Blueprint\
**Tags:** UE4-25, unreal-engine, question\
**Created:** [February 21, 2022, 3:45pm UTC](https://forums.unrealengine.com/t/create-widget-returns-null-if-play-as-client/500640 "2022-02-21T15:45:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cissoid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cissoid](https://forums.unrealengine.com/u/Cissoid)\
**Post date:** [February 21, 2022, 3:45pm UTC](https://forums.unrealengine.com/t/create-widget-returns-null-if-play-as-client/500640/1 "2022-02-21T15:45:57Z")

</div>

Hello,

if I play as client create widget returns null, but i don’t know why and how to fix it.  
I hope you can help me, thank you.

---

<div class="post-metadata">

**Author:** ![kissUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kissUE](https://forums.unrealengine.com/u/kissUE)\
**Post date:** [February 21, 2022, 4:28pm UTC](https://forums.unrealengine.com/t/create-widget-returns-null-if-play-as-client/500640/2 "2022-02-21T16:28:45Z")

</div>

play as Client means there is a server running at background. At server create widget will return null.So all you neeed is make sure code running at client.

---

<div class="post-metadata">

**Author:** ![Cissoid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cissoid](https://forums.unrealengine.com/u/Cissoid)\
**Post date:** [February 21, 2022, 5:06pm UTC](https://forums.unrealengine.com/t/create-widget-returns-null-if-play-as-client/500640/3 "2022-02-21T17:06:46Z")

</div>

Hi, thank you for the answer, thought the character code is not running on server.

I’ll try to check if server before creating the UI.

PS: Will mark as answer if its a solution
