local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local rootPart = character:WaitForChild("HumanoidRootPart") local workspace = game:GetService("Workspace") local levelsFolder = workspace:WaitForChild("Levels") local screenGui = Instance.new("ScreenGui") screenGui.Parent = game.CoreGui screenGui.Name = "ButtonTP" local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 220, 0, 160) frame.Position = UDim2.new(0, 20, 0, 20) frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) frame.Active = true frame.Draggable = true frame.Parent = screenGui local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "Button TP (1-200)" title.TextColor3 = Color3.new(1,1,1) title.TextScaled = true title.Font = Enum.Font.GothamBold title.Parent = frame local levelBox = Instance.new("TextBox") levelBox.Size = UDim2.new(1, -20, 0, 35) levelBox.Position = UDim2.new(0, 10, 0, 40) levelBox.BackgroundColor3 = Color3.fromRGB(60, 60, 60) levelBox.Text = "Enter level (1-200)" levelBox.TextColor3 = Color3.new(1,1,1) levelBox.TextScaled = true levelBox.Font = Enum.Font.Gotham levelBox.Parent = frame -- Highlight effect for levelBox local levelBoxStroke = Instance.new("UIStroke") levelBoxStroke.Color = Color3.fromRGB(0, 170, 0) levelBoxStroke.Thickness = 2 levelBoxStroke.Transparency = 0.5 levelBoxStroke.Parent = levelBox local tpButton = Instance.new("TextButton") tpButton.Size = UDim2.new(1, -20, 0, 35) tpButton.Position = UDim2.new(0, 10, 0, 85) tpButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) tpButton.Text = "TP TO BUTTON" tpButton.TextColor3 = Color3.new(1,1,1) tpButton.TextScaled = true tpButton.Font = Enum.Font.GothamBold tpButton.Parent = frame -- Highlight effect for tpButton local tpButtonStroke = Instance.new("UIStroke") tpButtonStroke.Color = Color3.fromRGB(255, 255, 255) tpButtonStroke.Thickness = 2 tpButtonStroke.Transparency = 0.3 tpButtonStroke.Parent = tpButton tpButton.MouseEnter:Connect(function() tpButtonStroke.Transparency = 0 tpButton.BackgroundColor3 = Color3.fromRGB(0, 200, 0) end) tpButton.MouseLeave:Connect(function() tpButtonStroke.Transparency = 0.3 tpButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) end) local statusLabel = Instance.new("TextLabel") statusLabel.Size = UDim2.new(1, -10, 0, 20) statusLabel.Position = UDim2.new(0, 10, 1, -25) statusLabel.BackgroundTransparency = 1 statusLabel.Text = "Ready" statusLabel.TextColor3 = Color3.new(0, 1, 0) statusLabel.TextScaled = true statusLabel.Font = Enum.Font.Gotham statusLabel.Parent = frame local creditLabel = Instance.new("TextLabel") creditLabel.Size = UDim2.new(1, -10, 0, 15) creditLabel.Position = UDim2.new(0, 10, 1, -40) creditLabel.BackgroundTransparency = 1 creditLabel.Text = "Made by @0zwt on discord" creditLabel.TextColor3 = Color3.fromRGB(150, 150, 150) creditLabel.TextScaled = true creditLabel.Font = Enum.Font.Gotham creditLabel.Parent = frame local function tpToButton(levelNum) local levelFolder = levelsFolder:FindFirstChild(tostring(levelNum)) if not levelFolder then statusLabel.Text = "Level " .. levelNum .. " not found!" statusLabel.TextColor3 = Color3.new(1, 0, 0) return false end local buttonModel = levelFolder:FindFirstChild("ButtonModel") if not buttonModel then statusLabel.Text = "No ButtonModel in level " .. levelNum statusLabel.TextColor3 = Color3.new(1, 0.5, 0) return false end local button = buttonModel:FindFirstChild("Button") if button and rootPart then rootPart.CFrame = button.CFrame + Vector3.new(0, 5, 0) statusLabel.Text = "✓ TP to Level " .. levelNum .. " Button" statusLabel.TextColor3 = Color3.new(0, 1, 0) print("✓ Teleported to Level " .. levelNum .. ".Button") return true else statusLabel.Text = "Button not found!" statusLabel.TextColor3 = Color3.new(1, 0, 0) return false end end tpButton.MouseButton1Click:Connect(function() local levelInput = levelBox.Text:match("%d+") -- Extract numbers if levelInput then tpToButton(tonumber(levelInput)) else statusLabel.Text = "Enter valid number!" statusLabel.TextColor3 = Color3.new(1, 0, 0) end end) levelBox.FocusLost:Connect(function() if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Return) then tpButton.MouseButton1Click:Fire() end end) player.CharacterAdded:Connect(function(char) character = char rootPart = char:WaitForChild("HumanoidRootPart") end) print("Made by @0zwt on discord!")