-- TP GUI to TouchPart5 -- LocalScript / Executor compatible local Players = game:GetService("Players") local player = Players.LocalPlayer ------------------------------------------------ -- GUI SETUP ------------------------------------------------ local gui = Instance.new("ScreenGui") gui.Name = "TPGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") -- MAIN FRAME local main = Instance.new("Frame", gui) main.Size = UDim2.new(0, 300, 0, 150) main.Position = UDim2.new(0.5, -150, 0.5, -75) main.BackgroundColor3 = Color3.fromRGB(30, 30, 30) main.Active = true main.Draggable = true Instance.new("UICorner", main) -- TITLE local title = Instance.new("TextLabel", main) title.Size = UDim2.new(1, 0, 0, 35) title.BackgroundTransparency = 1 title.Text = "TP to TouchPart5" title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBold title.TextSize = 18 -- MINIMIZE BUTTON local minimize = Instance.new("TextButton", main) minimize.Size = UDim2.new(0, 30, 0, 30) minimize.Position = UDim2.new(1, -35, 0, 3) minimize.Text = "-" minimize.BackgroundColor3 = Color3.fromRGB(60,60,60) minimize.TextColor3 = Color3.new(1,1,1) Instance.new("UICorner", minimize) -- TP BUTTON local tpButton = Instance.new("TextButton", main) tpButton.Size = UDim2.new(1, -40, 0, 45) tpButton.Position = UDim2.new(0, 20, 0, 70) tpButton.Text = "TP" tpButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45) tpButton.TextColor3 = Color3.new(1,1,1) tpButton.Font = Enum.Font.Gotham tpButton.TextSize = 20 Instance.new("UICorner", tpButton) ------------------------------------------------ -- MINIMIZED BUTTON ------------------------------------------------ local miniBtn = Instance.new("TextButton", gui) miniBtn.Size = UDim2.new(0, 100, 0, 100) miniBtn.Position = UDim2.new(0.05, 0, 0.5, -50) miniBtn.Text = "+" miniBtn.Visible = false miniBtn.BackgroundColor3 = Color3.fromRGB(35,35,35) miniBtn.TextColor3 = Color3.new(1,1,1) miniBtn.Font = Enum.Font.GothamBold miniBtn.TextSize = 40 miniBtn.Active = true miniBtn.Draggable = true Instance.new("UICorner", miniBtn) ------------------------------------------------ -- FUNCTION: TELEPORT ------------------------------------------------ local function teleport() local character = player.Character if not character then return end local hrp = character:FindFirstChild("HumanoidRootPart") if not hrp then return end local target = workspace:FindFirstChild("TouchPart5", true) if target and target:IsA("BasePart") then hrp.CFrame = target.CFrame + Vector3.new(0, 3, 0) end end ------------------------------------------------ -- BUTTON CONNECTIONS ------------------------------------------------ tpButton.MouseButton1Click:Connect(teleport) minimize.MouseButton1Click:Connect(function() main.Visible = false miniBtn.Visible = true end) miniBtn.MouseButton1Click:Connect(function() main.Visible = true miniBtn.Visible = false end)