How to make a script run when you die?

I’m trying to make a map regen whenever you die (its for a roblox Chips Challenge) but I don’t know how to make a script run if you die, there’s no way to get player health from LocalPlayer. I’m Stumped. all I want is just something to allow the map to regen on a characters death (BTW this game is single player so it doesn’t matter that it affects the whole server)

Is this what you are looking for? https://developer.roblox.com/en-us/api-reference/event/Humanoid/Died