Have a player coords device. Then have a trigger that is deactivated by default. Then have a respawn device. When there is a red light, activate the trigger. When there is a green light [or maybe yellow] deactivate the trigger. Now wire them.
Player Moves → Trigger Triggered → Respawn
Try this guide.