Replace mesh damage

Hi. I’m trying to create a puzzle platformer game inspired by the game “Time FCUK” where you can change platforms to solve puzzles and reach the goal. I’m almost there creating it but I can’t figure out how to damage (or respawn) when you shift the platform while your character is gonna collide with it. Sorry I can’t explain it quite well. But the game TIME FCUK will.

Thank you so much!