I've been trying to make in my game a system where it assigns a player a variable (or sets a variable to 1 to the specific player) that can be accessed from other scripts later on if they buy something from the shop. I'm not sure how to make it a temporary variable (variables gets unassigned from the player when they leave) while still being accessible from other scripts. Also, I want the script to only do the function to the player with that variable. How could I do this?