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

How do I teleport from one place to another?

Asked by 9 years ago

I have my dynamic places, so like my base game, and the other places. I want to know how I can simply teleport to those other places on the click of a GUI

0
Simple, use the 'TeleportService'. :P TheeDeathCaster 2368 — 9y

1 answer

Log in to vote
0
Answered by
jakedies 315 Trusted Moderation Voter Administrator Community Moderator
9 years ago

You would need to use the TeleportService's Teleport method. http://wiki.roblox.com/index.php?title=Teleport_(Method)

--Assuming this is inside a TextButton or something similar
script.Parent.MouseButton1Down:connect(function() --Call this function when someone presses their mouse down on the textbutton
    Game:GetService("TeleportService"):Teleport(yourPlaceID); --Call the teleport function. Fill in yourPlaceID to the ID of the place.
end);
Ad

Answer this question