How to kill player tools after breaking a chest

I want to make a chest that once you take away all of its health, disappears and gives the player that broke it some tools.

The issue is that I don’t know how to find the player that broke the chest and put tools in their backpack.

I have tried things like, if the humanoid in the chest is dead and the player touches the chest it will give them the tools. But what if the player doesn’t touch the chest, the chest won’t disappear nor give the tools.

My chest is made locally in this case but in the future, they will be server-made, so I would like to develop a system so that once the player breaks it, it disappears and gives them the tools on the server-side.

There is also a health bar to tell you the chest’s remaining health.