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

universe gui teleport back?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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

Answer this question