Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Grammar Fix #11

Merged
merged 2 commits into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en-us/projects/teleporting.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ To retrieve only the teleport data on the client, you can use `Class.TeleportSer

Like any API call that involves network requests, teleports might fail and throw an error. Even if a call succeeds and the teleport initiates, it can still fail at the last moment without throwing an error and leave the user in the server. When this happens, it triggers `Class.TeleportService.TeleportInitFailed`.

Wrap teleports in a protected call (`pcall()`) and retry if fails. The following example `Class.ModuleScript` defines a `SafeTeleport` function to teleport the user in a protected call and a `handleFailedTeleport` function to retry failed teleports that are one-time hiccups and drops invalid ones that might have errors in the code.
Wrap teleports in a protected call (`pcall()`) and retry if it fails. The following example `Class.ModuleScript` defines a `SafeTeleport` function to teleport the user in a protected call and a `handleFailedTeleport` function to retry failed teleports that are one-time hiccups and drops invalid ones that might have errors in the code.

```lua
local TeleportService = game:GetService("TeleportService")
Expand Down