I get an error when I run my project as a client.

When I run my project as standalone or listen server, no error occurs, but when I run it as a client, I get an error, but I couldn’t find the reason.


Try creating the widget in your PlayerController class, instead of character.