How can I get the player's tools right before they die?

Hello everyone, it’s me again. I want to ask if its possible to get the tools that are currently in the player’s hotbar or backpack RIGHT before they die. It seems you can’t because when you die, you lose all your tools before the Humanoid.Died event fires. But am I right? Is there some way that I accomplish this? Thank you.

I also tested this in Studio and it seems my theory is correct.

This seems to work fine for me…it prints all the tools out when the character dies. You can also access the backpack with player.Backpack.

humanoid.Died:Connect(function()
	for i, v in pairs(character:GetChildren()) do
		if v:IsA("Tool") then
			print(v)
		end
	end
	for i, v in pairs(player.Backpack:GetChildren()) do
		if v:IsA("Tool") then
			print(v)
		end
	end
end)
1 Like

If @quakage’s respond doesn’t work just save the items in the inventory whenever there is a change. (Like if a new tool is added or removed) That way no infinitely running loops