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

How do I tell if a player has no Saved Stats?

Asked by 10 years ago

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?

1
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. TigerCaptain 75 — 10y

Answer this question