vRP Framework has the feature you’re describing.
You’ll have to do some searching for it, but it is called when a player dies (obv)