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. :)

3 comments

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

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..

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?