I have a question about the behavior of tools in the Backpack when a character reset happens.
When the character is reset, I notice that the tools in the Backpack are briefly updated (they disappear and then reappear), but I’m not sure exactly what happens behind the scenes. It seems like the parent of the tool might be changed temporarily.
What does happen?
Are the tools in the Backpack deleted with :Destroy() and then added back after the character reset?
Is the parent of the tool briefly set to nil and then changed back to the Backpack?
Does the tool simply stay in the Backpack with no changes happening?
Or does happen something else?
Also, I’ve observed that if I put a LocalScript inside the tool and then perform a character reset, the script always runs again when the character respawns.
I’m hoping someone can explain what exactly happens internally when the character is reset and how the tools in the Backpack are affected.
The backpack and all tools are destroyed, a new backpack is created, and everything in player.StarterGear and the StarterPack service is cloned into the new backpack.
yes just like the docs says and the highlighted part in the image the Backpack is removed and a new one will be created
It’s destroyed and a new one is made immediately.
this simple script demonstrates it.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
player.CharacterAdded:Connect(function()
local backpack = player.Backpack
backpack.Destroying:Connect(function()
print("the backpack was destroyed.")
end)
end)
you will notice that every time you reset it will print.
It’s just like when you started as you are actually restarting. StarterPack Tools will be set back in place but everything else is gone … Or the game has a custom inventory system, tools may be stored and restored after reset. Just need to know the names and to add them back when they respawn basically.