Multiplayer BP - Set player username in "player state" and change TextRender over players head

Hello,
I’m currently learning UE4 Multiplayer with BP and I am stuck, My goal is to create a simple Widget where the player enters firstname and surname. This variable are saved in the playerstate and with a notify event the TextRender over the players head will be changed, now it already fails with the error message “Failed Casting to Player State”.

The Widget:

The Player State Class:

253158-help-playerstate.png

The “OnRep” Function:

The First Person Player Char:

maybe you are casting to wrong player state. did you used a custom player state in game mode?

Just to reduce confusion, try giving your custom playerstate class a different name like “RpPlayerState” for example.