Teleport (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Megamatrixdude
:Teleport(PlaceId) doesn't function with spawn names as far as I know. Also, thanks for adding the arguments, I forgot. :D
>Emess
the argument is an integer, not a string.
Line 12: Line 12:


{{Example|<pre>
{{Example|<pre>
game:GetService("TeleportService"):Teleport("1818") --> Will supposedly teleport a player to crossroads.
game:GetService("TeleportService"):Teleport(1818) --> Will supposedly teleport a player to crossroads.
</pre>}}
</pre>}}




[[Category:Methods]]
[[Category:Methods]]

Revision as of 03:44, 23 July 2011

Local: This item should be used with a LocalScript in order to work as expected in online mode.
Teleport( int PlaceId )
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 supposedly teleport a player to crossroads.