Teleport (Method)

From Legacy Roblox Wiki
Revision as of 18:29, 11 January 2012 by >Tomtomn00
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, String name of spawn location )
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 (supposedly) teleport a player to crossroads.