Here is what I am working with. I am trying to combine these two scripts. It teleports, but it does not close the GUI after the teleport is complete.
wait(1)
player = game.Players.LocalPlayer
button = script.Parent
local debounce = false
function helpme()
if not debounce then
debounce = true
LowerTorso = player.Character.LowerTorso
LowerTorso.CFrame = game.Workspace.mainfloor.CFrame
end
end
button.MouseButton1Click:connect(helpme)
while true do wait()
debounce = false
wait(7.5)
end
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent:Destroy()
end)
