Datastores, Help!

I’m new to datastores but how could I store a table like this {'1xxz9022':['Hello','GoodBye']}
Inside of a datastore than later update the table orrr grab all the data matching the first key.

You can simply turn it into a Lua table and store it

It would look something like this:

data = {["1xxz9022"] = {"Hello", "GoodBye"}}
yourdatastore:SetAsync("your key", data)

 -- or

data =  {"Hello", "GoodBye"}
yourdatastore:SetAsync("1xxz9022", data)

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.