PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

TeleportInitFailed

TeleportInitFailed fires on both the client and server when a request to teleport from a function such as TeleportService/Teleport fails and causes the player to not leave the current place server. The enum/TeleportResult provided by this event describes the reason the teleport failed, along with the error message displayed to the player.

Sometimes a teleportation can fail after the Player has left the place due to Roblox server issues. This event does not fire in this case, and the player would be disconnected. They would need to rejoin the 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.

See also

  • TeleportService/Teleport
  • TeleportService/TeleportPartyAsync
  • TeleportService/TeleportToPrivateServer
  • TeleportService/TeleportToPlaceInstance
  • TeleportService/TeleportToSpawnByName

Parameters

Name Type Default Description

The Player which failed to teleport

A Enum/TeleportResult enum describing the reason the teleport failed

The error message indicating why the teleport failed


Code Samples


Reattempt Failed Teleport

This code sample includes a function that will reattempt a teleport if Roblox servers are busy or an unexpected failure has occurred. It should be ran on the client.