Teleport (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens If you don't put a nil argument for the returns argument, the template does it for you. |
m Text replacement - "</code>" to "</SyntaxHighlight>" |
||
Line 14: | Line 14: | ||
<code lua> | <code lua> | ||
game:GetService('TeleportService'):Teleport(1818) | game:GetService('TeleportService'):Teleport(1818) | ||
</ | </SyntaxHighlight>}} | ||
==See Also== | ==See Also== |
Revision as of 03:56, 27 April 2023
Local: This item should be used with a LocalScript in order to work as expected in online mode.
![]() | |
Returns | nil |
Description: | Used in a LocalScript to teleport a player to the place with ID placeId. |
Member of: | TeleportService |
Example
This code will teleport a player to Crossroads:
game:GetService('TeleportService'):Teleport(1818)
</SyntaxHighlight>
See Also