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

Earlier, I was recommended to use a table, but I never used datastore with tables ever. How?

Asked by 4 years ago

I am on the brink of mind destruction as most things I see about saving a table is way too complicated.

local DataStore = game:GetService("DataStoreService"):GetDataStore("TestDataStore")

local BoughtTable = {
    game.ReplicatedStorage.Bought.BeamBought.Value,
    game.ReplicatedStorage.Bought.BombBought.Value,
}

above is my small table I am starting with atm, but aside from that, I can barely figure anything else out. I have the scripts already that set the value to True, but I still can't figure how to save the value, so far every tutorial and topic on the DevForum is completely unrelated. I recently just tried to make the values save without a table but still no luck. (lol I was wrong for thinking this was like saving leaderstats.) Please help me :(

Answer this question