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

Running multiple DataStores in one script?

Asked by 8 years ago

So I'm planning on making a HUGE game using DataStores for several things and I'm trying to figure out the most efficient way to have these DataStores within possibly one script or several scripts without glitching. Right now there are currently three lists that I want to save however I'm not sure what would be the best way to do them. The things I want to save are Character Customization, Stats, and Tools. Basically what I'm asking is if everything can go into one DataStore or if I have to leave them as they are.

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

You can make them into one DataStore, then have the DataStore hold a table. That would hold those 3 values. Then, you could go more in-depth within the current table to save the value.

So:

DataStore
    Customization
        Value
    Stats
        Value
    Tools
        Value

That's the structure how the table would work

0
I see, thanks for the help! OneTruePain 191 — 8y
0
No problem! Shawnyg 4330 — 8y
Ad

Answer this question