Teleport (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Flurite No edit summary |
>Samacado i don't like sarcasm in my code examples, also changed it to 'code lua' |
||
Line 11: | Line 11: | ||
{{clear floats}} | {{clear floats}} | ||
{{Example|< | {{Example|<code lua> | ||
game:GetService("TeleportService"):Teleport(1818) -- | game:GetService("TeleportService"):Teleport(1818) -- Will teleport a player to "Crossroads", a game by ROBLOX. | ||
</ | </code>}} | ||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 02:11, 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. If the second argument is provided, you will be teleported to a specific spawn location. |
Member of: | TeleportService |
Example
game:GetService("TeleportService"):Teleport(1818) -- Will teleport a player to "Crossroads", a game by ROBLOX.