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

how do i make a game teleport 2018?

Asked by 6 years ago

this is super annoying, and nothing i try will work.

2
yeet awesomeianman 7 — 6y
0
did you just yote on your own question? Le_Teapots 913 — 6y

2 answers

Log in to vote
0
Answered by
Avigant 2374 Moderation Voter Community Moderator
6 years ago

Use TeleportService:

http://wiki.roblox.com/index.php?title=API:Class/TeleportService

http://wiki.roblox.com/index.php?title=API:Class/TeleportService/Teleport

Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Here is what Avigant is trying to say:

clickdetect = script.Parent.ClickDetector
tp = game:GetService("TeleportService")
clickdetect.MouseClick:Connect(function()
    plr = game.Players:GetPlayerFromCharacter(clickdetect)
    if plr then
        tp:Teleport(00000000, player) -- Put the ID in place of 0s
    end
end)

Answer this question