TeleportOptions
This class is an optional parameter to the TeleportService:TeleportAsync() function that allows developers to provide arguments for the teleport call.
Certain arguments in this class are not compatible with each other and cause an error when passed to TeleportService:TeleportAsync():
- ReservedServerAccessCode + ServerInstanceId
- ShouldReserveServer + ServerInstanceId
- ShouldReserveServer + ReservedServerAccessCode
For more information on how to teleport players between servers, see Teleporting Between Places.
Summary
Properties
The reserved server access code that indicates the reserved server that the teleport should be to.
The DataModel.JobId of the server instance to teleport to.
A flag to indicate if a reserved server should be allocated and the players should then be teleported to this allocation.
Methods
Returns the teleport data stored in the TeleportOptions instance by TeleportOptions:SetTeleportData().
Setter function for data to be passed to the destination place.