Teleport (Method)

From Legacy Roblox Wiki
Revision as of 04:40, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">")
Jump to navigationJump to search
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