In my game, players can use in-game currency to purchase fun gears. I would like to know how I can save a player's in-game gear when they leave and join the game.
Hai cyclox You can change Tool to anything but you also gotta change in Loading sequence
if game.Players.LocalPlayer:WaitForDataReady() then player = game.Players.LocalPlayer player:WaitForChild("Backpack") player:SaveInstance("Tool", player:FindFirstChild("Backpack"):FindFirstChild("ToolName")) end
game.Players.PlayerAdded:connect(function(player) if player:WaitForDataReady() then -- Wait for the player's data cache to load or skip if it doesn't print(player:LoadInstance("Tool")) end end)
IMPORTANT: You will have to add the Save feature to activate when the player bought the item