i have tried using a script that closes the script but makes you teleport to the place
function onClicked()
script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(-1052, 752, 701.4)
end
script.Parent.MouseButton1Down:connect(onClicked)
local Frame = script.Parent.Parent
function onClick()
Frame.Visible = false
end
script.Parent.MouseButton1Click:connect(onClick) '
didnt work...

2 comments
Use the code block formatting next time.
i dont know how to code block