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

How can I make an adaptable DataStore?

Asked by 8 years ago

Okay, so I want to make a DataStore for my shops ingame, but I don't know all the items that are going to be in it. So the problem lies within the fact that I'm using a table, so I can reduce the calls needed to access the DataStore, and don't know how to update that table with new items, while keeping the old items and counts. I'm not asking for a full blown script, just a point in the right direction or idea. :)

0
I'm personally a little confused with the question. I guess my question would be why can't you add the items in the table when you make them? This might just be my own ignorance here. One option is to use table.insert. Here's a cool link, http://wiki.roblox.com/index.php?title=Function_dump/Table_manipulation User#11440 120 — 8y
0
Yea, I mean, would that really work? Especially with DataStore, because this is going to be a Shop thing across all servers. So, I'd have to table.insert when the server starts, but only once.. TinyPanda273 110 — 8y
0
Would it work if I added a new item, then ran a script in Test Mode while making all my servers have a script that updates from the DataStore every so often? TinyPanda273 110 — 8y

Answer this question