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
2 years 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 — 2y
0
will try thanks you VAnkata20 135 — 2y
0
ok but is there a way to put table in table VAnkata20 135 — 2y

1 answer

Log in to vote
1
Answered by 2 years ago
Edited 2 years 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