Hey Devs,
Just a simple question. I made this Script to Save some Stuff of a Folder located in the Player if the Game shutdowns. Im not quite sure if this would work, because I added a table here…
Help would be appreciated!
game:BindToClose(function()
for i,player in pairs(game.Players:GetPlayers()) do
local HaloSave = {}
for i, Halo in pairs(player.Owned:GetChildren()) do
if Halo then
table.insert(HaloSave,Halo.Name)
end
end
DataStore:SetAsync("User-"..player.UserId,HaloSave)
end
end)