Is there a way to detect crushing a player?

Hi, this sounds like a step in the right direction, I will give it some tests, but might have to try and factor in other variables such as the weight of the object, calculating the momentum, and also the velocity of the player.

But in order this this to work, do you know how I could determine if the player is being crushed up against something? A huge block pushing the player from the side shouldn’t within all reason kill them outright unless it is pushing them into a surface and crushing them, do you know how I would detect such a thing?