im trying to save table in data store
but some of table is nil after loading
im trying to data store table in table that in table
but some of table is nil
when saving
output
▼ {
["1"] = ▼ {
["16"] = ▼ {
["Pixel10x1"] = 1, 1, 1,
["Pixel10x10"] = 1, 1, 1,
["Pixel10x11"] = 1, 1, 1,
when loading
output
▼ {
["1"] = ▼ {
["16"] = {}
and when i try to save only 1 table
output
{}
im not sure if my code is wrong but here
local DS = game:GetService("DataStoreService")
local HS = game:GetService("HttpService")
local Data_Key = 0
local ArtData = DS:GetDataStore("ArtData"..Data_Key)
game.ReplicatedStorage.Event.ArtDataEvent.OnServerEvent:Connect(function(Player, ArtDataStore)
print(ArtDataStore)
local UserID = Player.UserId
ArtData:SetAsync(UserID,HS:JSONEncode(ArtDataStore))
end)
game.Players.PlayerAdded:Connect(function(Player)
local UserID = Player.UserId
local ArtDataGet = ArtData:GetAsync(UserID)
local ArtData = HS:JSONDecode(ArtDataGet)
print(ArtData)
end)