Random Way to go to Spectator or a different team pt. 2

This is part 2 of my other post, and i have finished the randomizer, but now i need my device so if the randomizer picked the player to be on a different team, that same player would be teleported to this spot.

I am a little confused would you mind explaining a little deeper

the best way is to know what is happening is by checking part 1, here is the link:
https://forum.creative.gimkit.com/t/random-way-to-go-to-spectator-or-a-different-team/24577/5