Hello, there is a method to save the players backpack when they quit, and load it when they join? Can you please explain me how? I'm new to scripting.
Usually, you would want to get a table of the objects inside the backpack, like so:
local player = script.Parent --This script is in StarterPlayerScripts local character = player.Character local backpackTools = player.Backpack:GetChildren() local charParts = character:GetChildren() for key,value in pairs (charParts) do if values.isA("Tool") then table.insert(backpackTools,1) end end
Then just simply insert these in a DataStore using a table.