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

Would it be possible to have two Data Store Scripts?

Asked by 10 years ago

Hi, I am curious if its possible to have two Data Store scripts and the Data Store still be functional? Say I have one script that has a Data Store Code, and Another with a Data Store Code. Each create a different value such as "Coins" and "Score". And the "Coins" Data store code would then save the data to the player and retrieve it. The "Score" Data Store would do the same thing except with the "Score" value. Sorry if this seems really complicated, but I am just curious because it would seem easier to do it that way instead of putting the code of both scripts into one script.

0
What do you mean by this? PiggyJingles 358 — 10y
0
I clarified the question a bit more. AwsomeSpongebob 350 — 10y
0
Yes, it's possible, but it's smarter to put them both into one script. GoldenPhysics 474 — 10y
0
Not to sound rude, but why? AwsomeSpongebob 350 — 10y
0
Clarity and organization. Always code something so that somebody with no knowledge of the code can figure it out with as little effort as possible adark 5487 — 10y

Answer this question