Teleport (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens No edit summary |
>JulienDethurens Since HTML offers to us tags such as the var tag, why not use them? :D |
||
Line 5: | Line 5: | ||
|arguments = [[int]] placeId | |arguments = [[int]] placeId | ||
|returns = [[nil]] | |returns = [[nil]] | ||
|description = Used in a [[LocalScript]] to teleport a player to the place with ID placeId. | |description = Used in a [[LocalScript]] to teleport a player to the place with ID <var>placeId</var>. | ||
|object = TeleportService | |object = TeleportService | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 06:22, 26 January 2012
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)