Been trying to set this up, but I feel like a lot of the documentation is really vague. The biggest issue is I have no idea how to obtain previously saved data. Does the Get() function grab a key? A value of something? Really confusing.
For me personally, having the functions written like this is also extremely frustrating:
Variant DataStore2:Get(defaultValue=nil, dontAttemptGet=false)
It’s really hard to understand what the parameters mean. The “variant” and “=nil” stuff makes it difficult for me to figure out the arguments I should use. I get you’re trying to be informative but can you make it slightly more readable?
And the descriptions aren’t that helpful. Is defaultValue supposed to be the key of the thing I want?
Also your example code isn’t helpful that much. Why are you using the comments to explain stuff totally unrelated to the module (e.g. “–Make sure the player is buying a real product”)? I’m confused on what exactly you’re giving the player when they join too… Are you getting them a value 100 or setting them or what? Very hard to understand.
I really would like to use a stable saving system like this but it’s confusing to set up. I hope you can address that stuff.