Teleport (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Samacado i don't like sarcasm in my code examples, also changed it to 'code lua' |
>Legend26 -.- |
||
Line 3: | Line 3: | ||
<onlyinclude>{{Method | <onlyinclude>{{Method | ||
|name = Teleport | |name = Teleport | ||
|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 PlaceId. | ||
|object = TeleportService | |object = TeleportService | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 02:19, 14 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
game:GetService("TeleportService"):Teleport(1818) -- Will teleport a player to "Crossroads", a game by ROBLOX.