local TeleportService = game:GetService("TeleportService")
local Place = 5598447761
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
TeleportService:Teleport(Place, player)
end)
What I have to do to make a surface gui button that teleports player to another place.
In oder for Interactive UI elements to work, Such as Buttons. Put the SurfaceGui into StarteGui and change the Adornee property to the part u want the SurfaceGui to display on.