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

How do I teleport from one place to another?

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

1 comment

0

Simple, use the 'TeleportService'. :P

1 answer

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);

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