I need help with if you die you don't spawn back on a spawn pad but you teleport into an endless hallay

Lifesycle
On player knockout
change team to another
set a spawn pad ONLY for that team.

the map is a FFA

it still might work if you set the team to the highest