So, I wanted to make a Teleport GUI that isn't based off of an object
What I mean by "based" is that when you touch that object, you get teleported to the coordinates that you placed in the script, or when you click a button on the GUI, it teleports you to an object.
What if I just want the button to be pressed, and you're just teleported to the coordinates?
local script, when you click the button it will fire an event
event=game:GetService("ReplicatedStorage"):WaitForChild("GuiTeleport") textbutton.MouseButton1Click:connect(function() event:FireServer() end)
server script when the event is fired, it teleports the player to the coordinates
event=Instance.new("RemoteEvent") event.Name="GuiTeleport" event.Parent=game:GetService("ReplicatedStorage") event.OnServerEvent:connect(function(player) player.Character.HumanoidRootPart.CFrame=CFrame.new(PUT YOUR CORDINATES HERE) end)