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

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

Asked by
VAnkata20 135
1 year ago

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

1
Use tables. DataStores accept tables. SuperPuiu 497 — 1y
0
will try thanks you VAnkata20 135 — 1y
0
ok but is there a way to put table in table VAnkata20 135 — 1y

1 answer

Log in to vote
1
Answered by 1 year ago
Edited 1 year ago

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

Ad

Answer this question