When a player dies how do you make them spawn somewhere else?

I am making a hide and seek map where if you get found and die then you spawnn in jail. Please help me

Use a checkpoint device.

I tried that but it did not work for me

didn’t you already make a post for this?

I tried that too but it did not work

maybe make the scope player? On the knockout device

It teleported the person that killed the person their but I want it to be the person that died to go their

ok, got it. use a lifecycle with the event "player knocked out (not knocks out) and wire it to the teleporter

Event occurs → teleport here

it sadly did not work

What happened?