local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Name = "TeleportGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local main = Instance.new("Frame") main.Size = UDim2.new(0, 260, 0, 300) main.Position = UDim2.new(0, 40, 0.5, -150) main.AnchorPoint = Vector2.new(0, 0.5) main.BackgroundColor3 = Color3.fromRGB(18, 18, 18) main.BackgroundTransparency = 1 main.Visible = false main.Parent = gui Instance.new("UICorner", main).CornerRadius = UDim.new(0, 16) Instance.new("UIStroke", main).Transparency = 1 local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 10) layout.HorizontalAlignment = Enum.HorizontalAlignment.Center layout.VerticalAlignment = Enum.VerticalAlignment.Center layout.Parent = main local function button(text) local b = Instance.new("TextButton") b.Size = UDim2.new(0.9, 0, 0, 42) b.Text = text b.Font = Enum.Font.GothamMedium b.TextSize = 15 b.TextColor3 = Color3.new(1,1,1) b.BackgroundColor3 = Color3.fromRGB(32,32,32) b.BackgroundTransparency = 1 Instance.new("UICorner", b).CornerRadius = UDim.new(0, 12) b.Parent = main return b end local function teleport(name) local char = player.Character or player.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart") local folder = workspace:WaitForChild("EndGoal") local part = folder:WaitForChild(name) hrp.CFrame = part.CFrame + Vector3.new(0,3,0) end button("Teleport to C1").MouseButton1Click:Connect(function() teleport("1") end) button("Teleport to C2").MouseButton1Click:Connect(function() teleport("2") end) button("Teleport to C3").MouseButton1Click:Connect(function() teleport("3") end) button("Teleport to Top4").MouseButton1Click:Connect(function() teleport("Top4") end) button("Teleport to Top5").MouseButton1Click:Connect(function() teleport("Top5") end) local openTween, closeTween local function openGui() main.Visible = true main.Size = UDim2.new(0, 220, 0, 260) main.BackgroundTransparency = 1 main.UIStroke.Transparency = 1 for _,v in ipairs(main:GetChildren()) do if v:IsA("TextButton") then v.BackgroundTransparency = 1 v.TextTransparency = 1 end end openTween = TweenService:Create(main, TweenInfo.new(0.35, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), { Size = UDim2.new(0, 260, 0, 300), BackgroundTransparency = 0.2 }) openTween:Play() TweenService:Create(main.UIStroke, TweenInfo.new(0.35), {Transparency = 0.6}):Play() for _,v in ipairs(main:GetChildren()) do if v:IsA("TextButton") then TweenService:Create(v, TweenInfo.new(0.3), { BackgroundTransparency = 0.1, TextTransparency = 0 }):Play() end end end local function closeGui() closeTween = TweenService:Create(main, TweenInfo.new(0.25, Enum.EasingStyle.Quart, Enum.EasingDirection.In), { Size = UDim2.new(0, 220, 0, 260), BackgroundTransparency = 1 }) closeTween:Play() TweenService:Create(main.UIStroke, TweenInfo.new(0.25), {Transparency = 1}):Play() for _,v in ipairs(main:GetChildren()) do if v:IsA("TextButton") then TweenService:Create(v, TweenInfo.new(0.2), { BackgroundTransparency = 1, TextTransparency = 1 }):Play() end end task.delay(0.25, function() main.Visible = false end) end local visible = false UIS.InputBegan:Connect(function(i,gp) if gp then return end if i.KeyCode == Enum.KeyCode.LeftAlt then visible = not visible if visible then openGui() else closeGui() end end end) local dragging, dragStart, startPos main.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = i.Position startPos = main.Position end end) main.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) UIS.InputChanged:Connect(function(i) if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then local delta = i.Position - dragStart main.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end)