You set the variables to client. Player variables are lost once the object dies or respawns. A good way to do it is so that you have most of your money set to the player, so that when you die you lose it. Quest objects and items are set to a client, therefore you have them once you spawn.