Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can I use ClickDetector to make a clickable place teleport?

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

✓ Accepted answer
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.

1 comment

0

thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.