(Lifecycle) Player Knocks Out —> (Trigger) Trigger
Put these blocks in the Trigger: (follow this guide)
Set [Variable] to random integer from # to #
if [Variable] = #
do Broadcast Message On Channel “switchspectator”
else if [Variable] = #
do Broadcast Message On Channel “switchteam”
Note: in the “set variable to random integer from # to #” part, using two integers is recommended.
also, make them broadcast on channels on two team switcher’s “switch team when receiving on” channel.
There’s a picture explanation in the comments below