You’re welcome.
If you instead save the variables on the PlayerState then you can use the function CopyProperties to transfer the variables to the new PlayerState being spawned in the next. Look at the existing function PlayerState:CopyProperties and do the same for your own variables.
Remember to call the Super::CopyProperties to not lose the existing code when overriding the function.