Skip to content

TeleporterDestination

Destination that Teleporter with the same TeleportId will randomly pick and teleport.

TeleporterDestination = {
-- Attributes
TeleporterId: std.Attribute<string>,
TeleporterOffset: std.Attribute<number | Vector3 | CFrame>,
-- API
idToDestination: std.MapArray<string, BasePart>,
}
TeleporterDestination.TeleporterId: std.Attribute<string>

The associated group of teleporters.

TeleporterDestination.TeleporterOffset: std.Attribute<number | Vector3 | CFrame>

How far from the center the player will be teleported to. Can be used to shift players from clipping into the ground with a TeleportDestination on the ground.

TeleporterDestination.idToDestination: std.MapArray<string, BasePart>

A MapArray from TeleporterId to TeleporterDestinations with that id.