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

Can I use ClickDetector to make a clickable place teleport?

Asked by 4 years ago

Is there a way to make a clickable place teleport rather than one you have to actually touch with your model. If there is then please tell me ;-;

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
ClickDetector.MouseClick:Connect(function(player)
    local place = YourPlaceId
    game:GetService(“TeleportService”):Teleport(player,place)
end)

Replace ClickDetector with the path to your click detector, and define place as your PlaceId to teleport to.

But to answer your question, Yes.

0
thanks! Yoshiaki_San 9 — 4y
Ad

Answer this question