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

How to save a table in a GUI shop to the Data Store?

Asked by 6 years ago

So I have a gui shop and a local script that has a table with the shop data kinda like this:

local shopData =

{
boughtHandGun = false
boughtShotgun = false
boughtRifle = false
}

But in the real script I have way more weapons (around 30) so what's the best way to approach this problem? I need to save that data in the DataStore. I already have a DataStore server script in ServerScriptService but I don't know how to use this table there and how to save it.

Answer this question