Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I use TeleportService?

Asked by 10 years ago

How do I use TeleportService?

3 answers

Log in to vote
0
Answered by 10 years ago

Here is a sample (Use in a localscript):

game:GetService("TeleportService"):Teleport(107795196, game.Players.LocalPlayer.Character)

What this does is it sends the localplayer to the place id 107795196, which in this case, would send them to "Welcome To My Profile".

You can just change the place id to any id you wish, as long as it's valid.

Ad
Log in to vote
0
Answered by 10 years ago
placeid = 107795196

game:GetService("TeleportService"):Teleport(placeid, game.Players.LocalPlayer.Character)
Log in to vote
0
Answered by 10 years ago
  • LocalScript Required -
Destination=0000000 --Replace 0's with a place ID
game:service("TeleportService"):Teleport(Destination)

Answer this question