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?
COMMUNITY QUESTION
Add personal variables assigned to players?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You could create a ModuleScript in ServerScriptService and just create a new table for each player and save those values?
I'm not too good with module scripts, but how would I store a player value or local value in a module script?