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

universe gui teleport back?

I need help with a touch(click) Gui Script so I can make it so when you click it you teleport back to the lobby?

1 answer

Inside of a TextButton, as a Localscript:

script.Parent.MouseButton1Down:connect(function()
	game:GetService("TeleportService"):Teleport(107795196, game.Players.LocalPlayer.Character)  -- Change 107795196 to the place id
end)

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