Teleport (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens Since HTML offers to us tags such as the var tag, why not use them? :D |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" Tags: mobile web edit mobile edit |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
|name = Teleport | |name = Teleport | ||
|arguments = [[int]] placeId | |arguments = [[int]] placeId | ||
|description = Used in a [[LocalScript]] to teleport a player to the place with ID <var>placeId</var>. | |description = Used in a [[LocalScript]] to teleport a player to the place with ID <var>placeId</var>. | ||
|object = TeleportService | |object = TeleportService | ||
Line 13: | Line 12: | ||
{{Example| | {{Example| | ||
This code will teleport a player to Crossroads: | This code will teleport a player to Crossroads: | ||
< | <syntaxhighlight lang="lua"> | ||
game:GetService('TeleportService'):Teleport(1818) | game:GetService('TeleportService'):Teleport(1818) | ||
</ | </syntaxhighlight>}} | ||
==See Also== | ==See Also== |
Latest revision as of 05:00, 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)