Can anyone help me with replicating a character change?

Hi there. I am trying to have it so when a client clicks a button on a UMG widget, it calls a custom event that spawns the client into a certain spot as a new character and destroys the old one. It works perfectly on the host but not on clients. I have it so when you do hit the button it also changes a value and it does not change it, meaning that the event is not getting called correctly on clients. I have looked up other answers with similar problems as the one I am having but have not been able to fix it. So how can I get this to function properly?

Hey @blastertoad you think you could help me out?

Make a custom event on your player controller that replicates as run on server. Have all the logic after that and just trigger it from the widget. Widgets do not replicate so can not run events on server directly. Let me know if you need a better explanation and I will type it out when I get home from work.

That was it. Thanks a bunch man, I really appreciate it. You’re awesome :smiley:

No problem man. Feel free to ask for help anytime