How can I teleport players to a waiting room when some condition is met and eliminate players who don't meet that condition?

I would use Verse, but maybe there’s a way in creative, I guess it depends on your condition and map design :

var PlayersToRelocate : []player = array{}

AllPlayers := GetPlayspace().GetPlayers() # all players, even dead ones
for(Player : AllPlayers, Character := Player.GetFortCharacter[]):
    if(INSERT_CONDITION_HERE?):
        INSERT_TELEPORTER_HERE.Teleport(Player) # the waiting room way
        # todo: the despawn way?
        PlayersToRelocate += array{Player}
    else:
        Character.SetVulnerability(true)
        Character.Damage(99999.9)

Sleep(5.0)
for(Player : PlayersToRelocate):
    OTHER_TP.Teleport(Player)

You can then put this in a function and call it multiple times whenever you need to.

I’ve made it all by memory, maybe the Teleport() function is Activate() I’m not sure.

Hope it leads you somewhere, good luck!

1 Like