Can't seem to get this working. Any help is appreciated
--!
local x = script.Parent
x.Parent = game.StarterGui
x.Adornee = game.Workspace.TpButton.Parts
function onclicked()
game:GetService('TeleportService'):Teleport(147513144, game.Workspace.LocalPlayer)
end
x.TeleportButton.MouseButton1Down:connect(onclicked)

2 comments
Put this into a LocalScript and it should work for you
It is in a ls