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...
I'm assuming this is a ScreenGui? If so you could use LocalPlayer and it would be a lot easier.
script.Parent.MouseButton1Down:connect(function() local plr = game.Players.LocalPlayer local frame = script.Parent.Parent plr.Character:MoveTo(Vector3.new(-1052, 752, 701.4) frame.Visible = false end
Comment if it didn't work.