Create Widget Returns null if play as Client

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.

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.

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