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

Saving a table with data stores?

Asked by 10 years ago

The table "PlayerData" has been converted into a JSONString that I want to save and load with data stores. How would I do this???

local PlayerData = {
money = 2500;
plane1Unlocked = false;
plane2Unlocked = false;
plane3Unlocked = false;
}

local http = game:GetService("HttpService")
local PlayerDataJSON = httpService:JSONEncode(PlayerData)

game.Players.PlayerAdded:connect(function(player)
--LoadData
end)


game.Players.PlayerRemoving:connect(function(player)
--SaveData
end)

Answer this question