Hi there. I am trying to maintain scoreboard values which are stored in player states. Basically I have a simple pvp game where you have kill/death ratio and when a player wins (1v1), the game automatically restarts, calling Restart Game from the gamemode. However upon doing so, I lose the scores in the Player State. How would I go about fixing this? I tried using Event CopyProperties on the playerstate but I could not manage to figure it out.
For now, I have changed the logic of restarting the game. I just don’t call restart game but use my own function to respawn players at their own spots and do something like a restart game but without resetting variables. However I would still like to learn how to use the Event CopyProperties of the Player State so that I can use it later on in my game.