I'm writing a Data Persistence script, and I want it to set a player's Gold value to either their goldKey string number, OR to 10 if they don't have any saved stats. How would I go about doing this?
COMMUNITY QUESTION
How do I tell if a player has no Saved Stats?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
again, I would not use data persistance. But, if you were to say player:LoadString() or 10, if player:LoadString() returned nil (for new players), the or would automatically assign it to 10.