How can I make a gui that teleports you to the map. For example your in a lobby and the map changes and teleports you automatically to the lobby, and then you enter the map by clicking that gui?
If you want a button to teleport you to the map, something like this.
local plr = game.Players.LocalPlayer local button = script.Parent button.MouseButton1Click:connect(function() plr.Character.Torso.CFrame = game.Workspace["GUIPart"].CFrame -- name of the block you want to teleport to. end)
on a textbutton, insert a localscript with the following code:
position = Vector3.new(0,0,0) -- CHANGE THIS TO THE POSITION script.Parent.Button1Click:connect(function() game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(position) end)