Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Inventory Save

I need a script which saves your Inventory when you exit and re-enter the game. If someone can help, I would appreciate. Thanks.

1 comment

0

This is not enough information to help, and I cannot tell if this is a request for a full script or a help request.

1 answer

game.Players.PlayerAdded:connect(function(player)
	local inventory=player:LoadInstance("Inventory")or Instance.new("Model")
	inventory.Name="Inventory"
	inventory.Parent=player
end)
game.Players.PlayerRemoving:connect(function(player)
	player:SaveInstance("Inventory",player.Inventory)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.