Teleport (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Megamatrixdude
No edit summary
>Sncplay42
Add arguments
Line 1: Line 1:
'''This method does not currently work, as the [[TeleportService]] is still under development.'''
{{local}}
 
<onlyinclude>{{Method
<onlyinclude>{{Method
|name                = Teleport
|name                = Teleport
|arguments            = [[int]] PlaceId, [[string]] SpawnName
|returns              = [[nil]]
|returns              = [[nil]]
|description          = When put into a [[LocalScript]], the Teleport method is used to teleport the player to a different game by PlaceId.
|description          = Used in a [[LocalScript]] to teleport a player to the place with ID PlaceId, at the spawn named by SpawnName.
|object              = TeleportService
|object              = TeleportService
}}</onlyinclude>
}}</onlyinclude>

Revision as of 12:33, 22 July 2011

Local: This item should be used with a LocalScript in order to work as expected in online mode.
Teleport( int PlaceId, string SpawnName )
Returns nil
Description: Used in a LocalScript to teleport a player to the place with ID PlaceId, at the spawn named by SpawnName.
Member of: TeleportService


Example
game:GetService("TeleportService"):Teleport("1818") --> Will supposedly teleport a player to crossroads.