Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Add personal variables assigned to players?

Asked by 4 years ago

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?

0
You could create a ModuleScript in ServerScriptService and just create a new table for each player and save those values? killerbrenden 1537 — 4y
0
I'm not too good with module scripts, but how would I store a player value or local value in a module script? NotOriginal12345 9 — 4y

Answer this question