Teleport (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">"
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Tags: mobile web edit mobile edit
 
Line 14: Line 14:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
game:GetService('TeleportService'):Teleport(1818)
game:GetService('TeleportService'):Teleport(1818)
</SyntaxHighlight>}}
</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.
Teleport( int placeId )
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)


See Also