Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

is there a way to save multiple values in one key using datastore?

i need help figuring that thing out for a game weapon system i am working on.

3 comments

1

Use tables. DataStores accept tables.

0

will try thanks you

0

ok but is there a way to put table in table

1 answer

✓ Accepted answer

local data = {

cash = 10
time = 2000

}

if you want to access a value just do

values.cash or values.time or whatever you put in there

This discussion is preserved as it was. New answers, comments, and votes are closed.