Teleport (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess
the argument is an integer, not a string.
>Flurite
No edit summary
Line 3: Line 3:
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                = Teleport
|name                = Teleport
|arguments            = [[int]] PlaceId
|arguments            = [[int]] PlaceId, [[String]] name of spawn location
|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. If the second argument is provided, you will be teleported to a specific spawn location.
|object              = TeleportService
|object              = TeleportService
}}</onlyinclude>
}}</onlyinclude>

Revision as of 19:31, 10 October 2011

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.