Im trying to find a way to detect when a player dies in a region

I saw a 14 year old post on this but it didnt really help me out