TeleportService
Enables transporting Players between places and servers.
Memory category | Instances |
---|
Member index 23
Removed member index 3
History | Member | |
---|---|---|
210 | TeleportImpl(placeId: int, spawnName: string): void | |
311 | ConfirmationCallback(message: string, placeId: int, spawnName: string): bool | |
311 | ErrorCallback(message: string): void |
Description
TeleportService is responsible for transporting Players between different places and servers.
For more information on how to teleport players between servers, see Teleporting Between Places.
History 86
- 648 Change Parameters of TeleportToPrivateServer from (placeId: int64, reservedServerAccessCode: string, players: Objects, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, reservedServerAccessCode: string, players: Instances, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 648 Change Parameters of TeleportPartyAsync from (placeId: int64, players: Objects, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, players: Instances, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 648 Change Parameters of TeleportAsync from (placeId: int64, players: Objects, teleportOptions: Instance = Instance) to (placeId: int64, players: Instances, teleportOptions: Instance = Instance)
- 594 Add
- 573 Change ReturnType of TeleportToSpawnByName from void to null
- 573 Change ReturnType of TeleportToPrivateServer from void to null
- 573 Change ReturnType of TeleportToPlaceInstance from void to null
- 573 Change ReturnType of TeleportCancel from void to null
- 573 Change ReturnType of Teleport from void to null
- 573 Change ReturnType of SetTeleportSetting from void to null
- 573 Change ReturnType of SetTeleportGui from void to null
- 573 Change ReturnType of Block from void to null
- 553 Add
- 553 Add
- 553 Change Default of CustomizedTeleportUI from to
- 547 Add UnblockAsync
- 547 Add Block
- 546 Add MenuTeleportAttempt
- 511 Change Parameters of TeleportInitFailed from (player: Instance, teleportResult: TeleportResult, errorMessage: string) to (player: Instance, teleportResult: TeleportResult, errorMessage: string, placeId: int64, teleportOptions: Instance)
- 486 Change ThreadSafety of CustomizedTeleportUI from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TeleportInitFailed from to Unsafe
- 462 Change ThreadSafety of LocalPlayerArrivedFromTeleport from to Unsafe
- 462 Change ThreadSafety of TeleportToSpawnByName from to Unsafe
- 462 Change ThreadSafety of TeleportToPrivateServer from to Unsafe
- 462 Change ThreadSafety of TeleportToPlaceInstance from to Unsafe
- 462 Change ThreadSafety of TeleportPartyAsync from to Unsafe
- 462 Change ThreadSafety of TeleportCancel from to Unsafe
- 462 Change ThreadSafety of TeleportAsync from to Unsafe
- 462 Change ThreadSafety of Teleport from to Unsafe
- 462 Change ThreadSafety of SetTeleportSetting from to Unsafe
- 462 Change ThreadSafety of SetTeleportGui from to Unsafe
- 462 Change ThreadSafety of ReserveServer from to Unsafe
- 462 Change ThreadSafety of GetTeleportSetting from to Unsafe
- 462 Change ThreadSafety of GetPlayerPlaceInstanceAsync from to Unsafe
- 462 Change ThreadSafety of GetLocalPlayerTeleportData from to Unsafe
- 462 Change ThreadSafety of GetArrivingTeleportGui from to Unsafe
- 462 Change ThreadSafety of CustomizedTeleportUI from to ReadOnly
- 458 Add TeleportAsync
- 352 Change ReturnType of ReserveServer from string to Tuple
- 350 Add GetArrivingTeleportGui
- 347 Add SetTeleportGui
- 331 Add TeleportPartyAsync
- 322 Change Parameters of TeleportToSpawnByName from (placeId: int, spawnName: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, spawnName: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 322 Change Parameters of TeleportToPrivateServer from (placeId: int, reservedServerAccessCode: string, players: Objects, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, reservedServerAccessCode: string, players: Objects, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 322 Change Parameters of TeleportToPlaceInstance from (placeId: int, instanceId: string, player: Instance = Instance, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, instanceId: string, player: Instance = Instance, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 322 Change Parameters of Teleport from (placeId: int, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 322 Change Parameters of ReserveServer from (placeId: int) to (placeId: int64)
- 322 Change Parameters of GetPlayerPlaceInstanceAsync from (userId: int) to (userId: int64)
- 320 Add TeleportInitFailed
- 311 Remove ErrorCallback
- 311 Remove ConfirmationCallback
- 223 Add SetTeleportSetting
- 223 Add GetTeleportSetting
- 223 Add GetLocalPlayerTeleportData
- 223 Change Tags of CustomizedTeleportUI from [NotReplicated] to [NotReplicated, Deprecated]
- 222 Remove SetTeleportSetting
- 222 Remove GetTeleportSetting
- 222 Remove GetLocalPlayerTeleportData
- 222 Change Tags of CustomizedTeleportUI from [NotReplicated, Deprecated] to [NotReplicated]
- 223 Add SetTeleportSetting
- 223 Add GetTeleportSetting
- 223 Add GetLocalPlayerTeleportData
- 223 Change Tags of CustomizedTeleportUI from [NotReplicated] to [NotReplicated, Deprecated]
- 210 Add TeleportToPrivateServer
- 210 Change Parameters of TeleportToPlaceInstance from (placeId: int, instanceId: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int, instanceId: string, player: Instance = Instance, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 210 Remove TeleportImpl
- 210 Add ReserveServer
- 206 Add LocalPlayerArrivedFromTeleport
- 206 Change Parameters of TeleportToSpawnByName from (placeId: int, spawnName: string, player: Instance = Instance) to (placeId: int, spawnName: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 206 Change Parameters of TeleportToPlaceInstance from (placeId: int, instanceId: string, player: Instance = Instance) to (placeId: int, instanceId: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 206 Change Parameters of Teleport from (placeId: int, player: Instance = Instance) to (placeId: int, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 139 Add TeleportToPlaceInstance
- 139 Add GetPlayerPlaceInstanceAsync
- 131 Change Tags of ErrorCallback from [] to [NoYield]
- 131 Change Tags of ConfirmationCallback from [] to [NoYield]
- 130 Add CustomizedTeleportUI
- 127 Change Parameters of TeleportToSpawnByName from (placeId: int, spawnName: string) to (placeId: int, spawnName: string, player: Instance = Instance)
- 127 Change Parameters of Teleport from (placeId: int) to (placeId: int, player: Instance = Instance)
- 55 Change Tags of TeleportService from [preliminary, NotCreatable, Service] to [NotCreatable, Service]
- 47 Add ErrorCallback
- 47 Add ConfirmationCallback
- 47 Add TeleportToSpawnByName
- 47 Add TeleportImpl
- 47 Add TeleportCancel
- 47 Add Teleport
- 47 Add TeleportService
Members 23
Block
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
CustomizedTeleportUI
Type | Default | |
---|---|---|
bool |
This property used to control whether or not a Message would be shown by default. The default message has been removed, so this no longer does anything.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | true/false |
History 7
- 553 Change Default of CustomizedTeleportUI from to
- 486 Change ThreadSafety of CustomizedTeleportUI from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CustomizedTeleportUI from to ReadOnly
- 223 Change Tags of CustomizedTeleportUI from [NotReplicated] to [NotReplicated, Deprecated]
- 222 Change Tags of CustomizedTeleportUI from [NotReplicated, Deprecated] to [NotReplicated]
- 223 Change Tags of CustomizedTeleportUI from [NotReplicated] to [NotReplicated, Deprecated]
- 130 Add CustomizedTeleportUI
GetArrivingTeleportGui
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Instance |
This function returns the customLoadingScreen the LocalPlayer arrived into the place with.
Note, the customLoadingScreen will not be used if the destination place is in a different game.
Loading Screen
During a teleport, while the destination place is loading, the customLoadingScreen is parented to the CoreGui. Once the place has loaded the loading screen is parented to nil.
If you wish to preserve the customLoadingScreen and perform your own transitions, you will need to parent it to the local player's PlayerGui. For an example of this, see the code sample below.
Studio Limitation
This service does not work during playtesting in Roblox Studio — To test aspects of your game using it, you must publish the game and play it in the Roblox application.
Thread safety | Unsafe |
---|
History 2
- 462 Change ThreadSafety of GetArrivingTeleportGui from to Unsafe
- 350 Add GetArrivingTeleportGui
GetLocalPlayerTeleportData
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Variant |
This function returns the teleport data the Players.LocalPlayer arrived with. It can only be called from the client.
Exploiters can spoof teleport data. Send secure data such as player currency through a server-side service such as DataStoreService to prevent tampering.
Thread safety | Unsafe |
---|
History 4
- 462 Change ThreadSafety of GetLocalPlayerTeleportData from to Unsafe
- 223 Add GetLocalPlayerTeleportData
- 222 Remove GetLocalPlayerTeleportData
- 223 Add GetLocalPlayerTeleportData
GetPlayerPlaceInstanceAsync
Parameters (1) | ||
---|---|---|
userId | int64 | |
Returns (1) | ||
Tuple |
This function returns the PlaceId and JobId of the server the user with the given UserId is in, provided it is in the same game as the current place.
Then, TeleportService:TeleportToPlaceInstance() can be called with this information to allow a user to join the target user's server.
Upon a successful lookup, the function returns the following values:
# | Name | Type | Description |
---|---|---|---|
1 | currentInstance | bool | A bool indicating if the user was found in the current instance |
2 | error | string | An error message in the event of the lookup failing |
3 | placeId | int64 | The PlaceId of the server the user is in |
4 | instanceId | string | The JobId of the server the user is in |
If there is a problem during lookup, such as the user being offline, an
error is thrown. It is recommended that you wrap calls to this function in
pcall
.
Limitations
You should be aware of the following limitations when using this function:
- This function can only be called by the server.
- This function may fail to return the correct information if the user is teleporting.
- It is possible for this function to throw an error, hence developers should wrap it in a pcall() (see example below)
- As this function returns the JobId of the server and not the access code returned by TeleportService:ReserveServer(), the id returned is not appropriate for use with reserved servers.
Studio Limitation
This service does not work during playtesting in Roblox Studio — To test aspects of your game using it, you must publish the game and play it in the Roblox application.
Thread safety | Unsafe |
---|
History 3
- 462 Change ThreadSafety of GetPlayerPlaceInstanceAsync from to Unsafe
- 322 Change Parameters of GetPlayerPlaceInstanceAsync from (userId: int) to (userId: int64)
- 139 Add GetPlayerPlaceInstanceAsync
GetTeleportSetting
Parameters (1) | ||
---|---|---|
setting | string | |
Returns (1) | ||
Variant |
This function retrieves a teleport setting saved using TeleportService:SetTeleportSetting() using the given key.
This method is intended for use on the client only and should not be used on the server.
Teleport settings are preserved across teleportations within the same game. This means data can be saved using TeleportService:SetTeleportSetting() in one place and retrieved using GetTeleportSetting in another place the user has been teleported to.
For example, in a game that allowed crouching you could save whether the user is currently crouching prior to teleporting as a teleport setting. This could then be retrieved in the destination place after the teleportation:
1 2 3 |
|
If no teleport setting exists under the given key, this function will return nil.
Differences from GlobalDataStores
Although they share some similarities, there are some key differences between teleport settings and datastores:
- GlobalDataStore:SetAsync() stores the data on Roblox servers whereas SetTeleportSetting stores the data locally
- Data stored in a GlobalDataStore is preserved after the user leaves the game universe whereas teleport settings are not
- GlobalDataStores can only be accessed on the server, whereas teleport settings can only be accessed on the client
- GlobalDataStores have usage limits, whereas teleport settings do not
In general teleport settings should be used to preserve client side information within a single play session across different places in a game. GlobalDataStores should be used to save important player data that needs to be accessed across player sessions.
Teleport settings and security
As teleport settings are stored locally, it is possible they can be manipulated by malicious users. This risk can be mitigated by employing server side validation.
Studio limitation
This service does not work during playtesting in Roblox Studio — To test aspects of your game using it, you must publish the game and play it in the Roblox application.
Thread safety | Unsafe |
---|
History 4
- 462 Change ThreadSafety of GetTeleportSetting from to Unsafe
- 223 Add GetTeleportSetting
- 222 Remove GetTeleportSetting
- 223 Add GetTeleportSetting
LocalPlayerArrivedFromTeleport
Parameters (2) | |
---|---|
loadingGui | Instance |
dataTable | Variant |
This function fires when the Players.LocalPlayer enters the place
following a teleport. The teleportData
and customLoadingScreen
are
provided as arguments.
When fetching teleportData and the customLoadingScreen you are advised to use TeleportService:GetLocalPlayerTeleportData() and TeleportService:GetArrivingTeleportGui() instead. This is because these functions can be called immediately without having to wait for this event to fire.
This event should be connected immediately in a LocalScript parented to ReplicatedFirst. Otherwise, when the connection is made the event may have already fired.
Loading Screen
During a teleport, while the destination place is loading, the customLoadingScreen is parented to the CoreGui. Once the place has loaded the loading screen is parented to nil.
If you wish to preserve the customLoadingScreen and perform your own transitions, you will need to parent it to the local player's PlayerGui. For example, using the following code inside a LocalScript in ReplicatedFirst:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
The customLoadingScreen will not be used if the destination place is in a different game.
Studio Limitation
This service does not work during playtesting in Roblox Studio — To test aspects of your game using it, you must publish the game and play it in the Roblox application.
Thread safety | Unsafe |
---|
History 2
- 462 Change ThreadSafety of LocalPlayerArrivedFromTeleport from to Unsafe
- 206 Add LocalPlayerArrivedFromTeleport
MenuTeleportAttempt
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
ReserveServer
Parameters (1) | ||
---|---|---|
placeId | int64 | |
Returns (1) | ||
Tuple |
This function returns an access code that can be used to teleport players to a reserved server, along with the server's DataModel.PrivateServerId. It can only be called on the server.
Reserved Servers
You can access reserved servers using:
- TeleportService:TeleportAsync() with the TeleportOptions.ReservedServerAccessCode parameter.
- TeleportService:TeleportToPrivateServer(), with the access code
ReserveServer
returns.- A server is started when the access code is first used.
- Access codes remain valid indefinitely, meaning reserved servers can still be joined if no game server is running (in this case a new server will be started).
You can see if the current server is a reserved server by using the following code:
1
|
|
The DataModel.PrivateServerId is constant across all server instances associated with the server access code, the DataModel.JobId is not.
Studio Limitation
This service does not work during playtesting in Roblox Studio; to test aspects of your game using it, you must publish the game and play it in the Roblox application.
Cross-Platform Play
Players on Xbox One with cross-platform play disabled will arrive in a different server with players with cross-platform play enabled. This can cause multiple game servers with the same PrivateServerId to exist.
Thread safety | Unsafe |
---|
History 4
- 462 Change ThreadSafety of ReserveServer from to Unsafe
- 352 Change ReturnType of ReserveServer from string to Tuple
- 322 Change Parameters of ReserveServer from (placeId: int) to (placeId: int64)
- 210 Add ReserveServer
SetTeleportGui
Parameters (1) | ||
---|---|---|
gui | Instance | |
Returns (1) | ||
null |
This function sets the custom teleport GUI that will be shown to the local user during teleportation, prior to the teleport being invoked.
Note, the teleport GUI will not be used if the destination place is in a different game. It will also not persist across multiple teleports and will need to be set prior to each one.
This function should only be used on the client. If the teleportation function is called from the server (as is the case with TeleportService:TeleportAsync()) then this function should be called on the client prior to this. One way of doing this is listening to a RemoteEvent that fires several seconds before teleportation.
Loading screen
During a teleport, while the destination place is loading, the customLoadingScreen is parented to the CoreGui. Once the place has loaded the loading screen is parented to nil.
This ScreenGui can be fetched at the destination place using TeleportService:GetArrivingTeleportGui(), allowing you to parent it to the PlayerGui and perform your own transitions.
You are advised to also parent the ScreenGui to the PlayerGui in the start place while the teleport is initiating.
Studio Limitation
This service does not work during playtesting in Roblox Studio — To test aspects of your game using it, you must publish the game and play it in the Roblox application.
Thread safety | Unsafe |
---|
History 3
- 573 Change ReturnType of SetTeleportGui from void to null
- 462 Change ThreadSafety of SetTeleportGui from to Unsafe
- 347 Add SetTeleportGui
SetTeleportSetting
Parameters (2) | ||
---|---|---|
setting | string | |
value | Variant | |
Returns (1) | ||
null |
This function stores a value under a given key that persists across all teleportations in the same game.
This method is intended for use on the client only and should not be used on the server.
The stored value can later be retrieved using TeleportService:GetTeleportSetting(). This will work in the current place and any subsequent places the Players.LocalPlayer teleports to, provided they are in the same game.
For example, in a game that allowed crouching you could save whether the user is currently crouching prior to teleporting as a teleport setting:
1 2 3 4 |
|
The stored value can take one of the following forms:
- A table without mixed keys (all strings or all integers)
- A string
- A number
- A bool
If data is already stored under the given key, the previous value will be overwritten by the new value.
Differences from GlobalDataStores
Although they share some similarities, there are some key differences between teleport settings and datastores:
- GlobalDataStore:SetAsync() stores the data on Roblox servers whereas SetTeleportSetting stores the data locally
- Data stored in a GlobalDataStore is preserved after the user leaves the game universe whereas teleport settings are not
- GlobalDataStores can only be accessed on the server, whereas teleport settings can only be accessed on the client
- GlobalDataStores have usage limits, whereas teleport settings do not
In general teleport settings should be used to preserve client side information within a single play session across different places in a game. GlobalDataStores should be used to save important player data that needs to be accessed across player sessions.
Teleport settings and security
As teleport settings are stored locally, it is possible they can be manipulated by malicious users. This risk can be mitigated by employing server side validation.
Studio limitation
This service does not work during playtesting in Roblox Studio — To test aspects of your game using it, you must publish the game and play it in the Roblox application.
Thread safety | Unsafe |
---|
History 5
- 573 Change ReturnType of SetTeleportSetting from void to null
- 462 Change ThreadSafety of SetTeleportSetting from to Unsafe
- 223 Add SetTeleportSetting
- 222 Remove SetTeleportSetting
- 223 Add SetTeleportSetting
Teleport
Parameters (4) | Default | |
---|---|---|
placeId | int64 | |
player | Instance | Instance |
teleportData | Variant | |
customLoadingScreen | Instance | Instance |
Returns (1) | ||
null |
This method should not be used for new work; the numerous teleport functions have been combined into a single method, TeleportAsync(), which should be used instead.
Thread safety | Unsafe |
---|
History 6
- 573 Change ReturnType of Teleport from void to null
- 462 Change ThreadSafety of Teleport from to Unsafe
- 322 Change Parameters of Teleport from (placeId: int, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 206 Change Parameters of Teleport from (placeId: int, player: Instance = Instance) to (placeId: int, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 127 Change Parameters of Teleport from (placeId: int) to (placeId: int, player: Instance = Instance)
- 47 Add Teleport
TeleportAsync
Parameters (3) | Default | |
---|---|---|
placeId | int64 | |
players | Instances | |
teleportOptions | Instance | Instance |
Returns (1) | ||
Instance |
This function serves as the all-encompassing method to teleport a player or group of players from one server to another. It can be used to:
- Teleport players to a different place.
- Teleport players to a specific server.
- Teleport players to a reserved server.
Group Teleport Limitations
- Groups of players can only be teleported within a single experience.
- No more than 50 players can be teleported with a single TeleportService:TeleportAsync() call.
Potential Errors
This is a list of potential reasons a teleport may fail, ranging from invalid teleports to network issues.
Error | Description |
---|---|
Invalid placeId | The provided place ID is below 0. |
Players empty | The provided list of players to teleport is empty. |
List of players instances is incorrect | Any of the provided players is not a Player object. |
TeleportOptions not of correct type | The provided teleportOption is not a TeleportOptions object. |
TeleportAsync called from Client | The client called TeleportAsync, which can only be called from the server. |
Incompatible Parameters | Conflicting teleport options were used and TeleportService doesn't know where to send the player. Conflicting TeleportOption parameters: * ReservedServerAccessCode and ServerInstanceId * ShouldReserveServer and ServerInstanceId * ShouldReserveServer and ReservedServerAccessCode |
For more information on how to teleport players between servers and receive user data from a teleport, see Teleporting Between Places.
Thread safety | Unsafe |
---|
History 3
- 648 Change Parameters of TeleportAsync from (placeId: int64, players: Objects, teleportOptions: Instance = Instance) to (placeId: int64, players: Instances, teleportOptions: Instance = Instance)
- 462 Change ThreadSafety of TeleportAsync from to Unsafe
- 458 Add TeleportAsync
TeleportCancel
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of TeleportCancel from void to null
- 462 Change ThreadSafety of TeleportCancel from to Unsafe
- 47 Add TeleportCancel
TeleportInitFailed
Parameters (5) | |
---|---|
player | Instance |
teleportResult | TeleportResult |
errorMessage | string |
placeId | int64 |
teleportOptions | Instance |
This event fires on both the client and the server when a request to teleport from a function such as TeleportService:TeleportAsync() fails and the player does not leave the current server. It provides a reason for the failure, as well as all of the information necessary to retry the teleport. If a group teleport fails, the event will fire once per player.
TeleportOptions
The TeleportOptions object provided by this event is not identical to the one passed to the original TeleportService:TeleportAsync() call. It is a new object populated with the necessary parameters to retry the teleport and send the player to the exact same destination. This is especially important for facilitating group teleports when they fail.
Original Teleport Type | Teleport Data | ReservedServerAccessCode | ServerInstanceId | ShouldReserveServer |
---|---|---|---|---|
Individual player to place | Original value | None | None | false |
Player(s) to reserved server | Original value | Original value, or the code generated if ShouldReserveServer was originally true | None | false |
Player(s) to specific server | Original value | None | Original value | false |
Players to place | Original value | None | Same destination ID as the other players in the original teleport | false |
For more information on how to teleport players between servers, see Teleporting Between Places.
Thread safety | Unsafe |
---|
History 3
- 511 Change Parameters of TeleportInitFailed from (player: Instance, teleportResult: TeleportResult, errorMessage: string) to (player: Instance, teleportResult: TeleportResult, errorMessage: string, placeId: int64, teleportOptions: Instance)
- 462 Change ThreadSafety of TeleportInitFailed from to Unsafe
- 320 Add TeleportInitFailed
TeleportPartyAsync
Parameters (4) | Default | |
---|---|---|
placeId | int64 | |
players | Instances | |
teleportData | Variant | |
customLoadingScreen | Instance | Instance |
Returns (1) | ||
string |
This method should not be used for new work; the numerous teleport functions have been combined into a single method, TeleportAsync(), which should be used instead.
Thread safety | Unsafe |
---|
History 3
- 648 Change Parameters of TeleportPartyAsync from (placeId: int64, players: Objects, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, players: Instances, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 462 Change ThreadSafety of TeleportPartyAsync from to Unsafe
- 331 Add TeleportPartyAsync
TeleportToPlaceInstance
Parameters (6) | Default | |
---|---|---|
placeId | int64 | |
instanceId | string | |
player | Instance | Instance |
spawnName | string | |
teleportData | Variant | |
customLoadingScreen | Instance | Instance |
Returns (1) | ||
null |
This method should not be used for new work; the numerous teleport functions have been combined into a single method, TeleportAsync(), which should be used instead.
Thread safety | Unsafe |
---|
History 6
- 573 Change ReturnType of TeleportToPlaceInstance from void to null
- 462 Change ThreadSafety of TeleportToPlaceInstance from to Unsafe
- 322 Change Parameters of TeleportToPlaceInstance from (placeId: int, instanceId: string, player: Instance = Instance, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, instanceId: string, player: Instance = Instance, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 210 Change Parameters of TeleportToPlaceInstance from (placeId: int, instanceId: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int, instanceId: string, player: Instance = Instance, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 206 Change Parameters of TeleportToPlaceInstance from (placeId: int, instanceId: string, player: Instance = Instance) to (placeId: int, instanceId: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 139 Add TeleportToPlaceInstance
TeleportToPrivateServer
Parameters (6) | Default | |
---|---|---|
placeId | int64 | |
reservedServerAccessCode | string | |
players | Instances | |
spawnName | string | |
teleportData | Variant | |
customLoadingScreen | Instance | Instance |
Returns (1) | ||
null |
This method should not be used for new work; the numerous teleport functions have been combined into a single method, TeleportAsync(), which should be used instead.
Thread safety | Unsafe |
---|
History 5
- 648 Change Parameters of TeleportToPrivateServer from (placeId: int64, reservedServerAccessCode: string, players: Objects, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, reservedServerAccessCode: string, players: Instances, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 573 Change ReturnType of TeleportToPrivateServer from void to null
- 462 Change ThreadSafety of TeleportToPrivateServer from to Unsafe
- 322 Change Parameters of TeleportToPrivateServer from (placeId: int, reservedServerAccessCode: string, players: Objects, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, reservedServerAccessCode: string, players: Objects, spawnName: string = , teleportData: Variant, customLoadingScreen: Instance = Instance)
- 210 Add TeleportToPrivateServer
TeleportToSpawnByName
Parameters (5) | Default | |
---|---|---|
placeId | int64 | |
spawnName | string | |
player | Instance | Instance |
teleportData | Variant | |
customLoadingScreen | Instance | Instance |
Returns (1) | ||
null |
This method should not be used for new work; the numerous teleport functions have been combined into a single method, TeleportAsync(), which should be used instead.
Thread safety | Unsafe |
---|
History 6
- 573 Change ReturnType of TeleportToSpawnByName from void to null
- 462 Change ThreadSafety of TeleportToSpawnByName from to Unsafe
- 322 Change Parameters of TeleportToSpawnByName from (placeId: int, spawnName: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance) to (placeId: int64, spawnName: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 206 Change Parameters of TeleportToSpawnByName from (placeId: int, spawnName: string, player: Instance = Instance) to (placeId: int, spawnName: string, player: Instance = Instance, teleportData: Variant, customLoadingScreen: Instance = Instance)
- 127 Change Parameters of TeleportToSpawnByName from (placeId: int, spawnName: string) to (placeId: int, spawnName: string, player: Instance = Instance)
- 47 Add TeleportToSpawnByName
UnblockAsync
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Tuple |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 1
- 547 Add UnblockAsync
Removed members 3
ConfirmationCallback
Parameters (3) | ||
---|---|---|
placeId | int | |
spawnName | string | |
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|
History 3
- 311 Remove ConfirmationCallback
- 131 Change Tags of ConfirmationCallback from [] to [NoYield]
- 47 Add ConfirmationCallback
ErrorCallback
Parameters (1) | ||
---|---|---|
Returns (1) | ||
void |
Security | RobloxScriptSecurity |
---|
History 3
- 311 Remove ErrorCallback
- 131 Change Tags of ErrorCallback from [] to [NoYield]
- 47 Add ErrorCallback
TeleportImpl
Parameters (2) | ||
---|---|---|
placeId | int | |
spawnName | string | |
Returns (1) | ||
void |
Security | RobloxScriptSecurity |
---|
History 2
- 210 Remove TeleportImpl
- 47 Add TeleportImpl