Updating a replicated variable from the client

How can I update a replicated variable on the client? I am making a kart select screen and am trying to pass their selected kart to a player’s player state on post login. I am trying to debug and see where I am going wrong. This logic that is in the pictures is my player state class.


The client is able to print and then call the event.


The server prints the correct value, but it doesn’t update the variable in the player state. I am unsure how to set the variable in player state.

Set the PlayerKart variable on the Authority path only, its replicated back to the client.

if the client wants to change the Kart with say a UI option, then you use the SetKart RPC you have

I was setting the variable before I joined the session. I saw another post asking something similar to me. I ended up using save games and that allowed me to retrieve the information from the client side.

Thank you for trying to help.