# I want to create a teleporting system for a starter lobby in Verse

**URL:** <https://forums.unrealengine.com/t/i-want-to-create-a-teleporting-system-for-a-starter-lobby-in-verse/1962005>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite\
**Created:** [August 4, 2024, 9:27pm UTC](https://forums.unrealengine.com/t/i-want-to-create-a-teleporting-system-for-a-starter-lobby-in-verse/1962005 "2024-08-04T21:27:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tommiislav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tommiislav](https://forums.unrealengine.com/u/Tommiislav)\
**Post date:** [August 4, 2024, 9:27pm UTC](https://forums.unrealengine.com/t/i-want-to-create-a-teleporting-system-for-a-starter-lobby-in-verse/1962005/1 "2024-08-04T21:27:15Z")

</div>

I want a teleporter system that, after a countdown, can teleport any number of players to teleporters. Only one player should spawn per teleporter, which means we need an array that is randomly shuffled. After a player is teleported, the corresponding element should be removed. Unfortunately, I’m not yet good at Verse as I’m still learning it, and I was wondering if someone could help me with this because I need the teleporter system.

[Insant Respawn after 6,5 seconds.txt](https://forums.unrealengine.com/uploads/short-url/9ZCrSncLJNOoUqiwSSYRqnOlMPH.txt) (904 Bytes)

The code i have:

using { /Verse.org/Simulation }  
using { /Fortnite.com/Devices }  
using { /Verse.org/Random }

random\_teleporter := class(creative\_device):

```
@editable
Teleporters: []teleporter_device = array{}

#Could be changed to pretty much anything tbh. As long as there is a listenable Agent.
@editable
EnterRandomTeleporter: mutator_zone_device = mutator_zone_device{}

OnBegin<override>()<suspends>:void=
    EnterRandomTeleporter.AgentEntersEvent.Subscribe(EnterEvent)

EnterEvent(Agent:agent):void=
        spawn:
          EnterEvent2(Agent)
      
EnterEvent2(Agent:agent) <suspends> : void =
        Sleep(6.5)
        var RandomTeleporter:int = GetRandomInt(1, 16) # CHANGE THIS TO THE NUMBER OF TELEPORTERS
        if(SelectedTeleporter := Teleporters[RandomTeleporter]):
          SelectedTeleporter.Teleport(Agent)

```
