--[[ HP TEAM PRO V1 - LocalScript Đặt vào: StarterPlayer > StarterPlayerScripts (hoặc StarterGui) Gồm: GUI kéo thả, 3 tab (Main / Esp / Khác), Esp, No Clip, Fly, Speed, Jumping Air, Night Vision. ]] ---------------------------------------------------------------- -- [1] SERVICES ---------------------------------------------------------------- local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") ---------------------------------------------------------------- -- [2] CONFIG (chỉnh theo game của bạn) ---------------------------------------------------------------- local CONFIG = { TargetFolder = Workspace, -- đổi thành workspace.Mobs / workspace.NPCs nếu có để quét nhẹ hơn ScanRange = 150, -- studs ScanInterval = 0.5, -- giây giữa mỗi lần quét WalkSpeedDefault = 32, WalkSpeedMin = 16, WalkSpeedMax = 200, WalkSpeedStep = 8, FlySpeedDefault = 50, FlySpeedMin = 10, FlySpeedMax = 300, FlySpeedStep = 10, RangeMin = 50, RangeMax = 500, RangeStep = 50, UpKey = Enum.KeyCode.E, DownKey = Enum.KeyCode.Q, } local COLORS = { BG = Color3.fromHex("0C0E0C"), BG2 = Color3.fromHex("141814"), GREEN = Color3.fromHex("00FF66"), TEXT = Color3.fromRGB(230, 255, 235), DIM = Color3.fromRGB(40, 46, 40), } ---------------------------------------------------------------- -- [3] STATE / CLEANUP ---------------------------------------------------------------- local old = PlayerGui:FindFirstChild("HpTeamProV1") if old then old:Destroy() end local connections = {} local destroyed = false local function track(conn) table.insert(connections, conn) return conn end local State = {} -- [featureKey] = boolean local Features = {} -- [featureKey] = {enable = fn, disable = fn} local ToggleUI = {} -- [featureKey] = TextButton local Values = { WalkSpeed = CONFIG.WalkSpeedDefault, FlySpeed = CONFIG.FlySpeedDefault, } local function getHumanoid() local c = LocalPlayer.Character return c and c:FindFirstChildOfClass("Humanoid") end local function getRoot() local c = LocalPlayer.Character return c and c:FindFirstChild("HumanoidRootPart") end local function new(class, props, parent) local inst = Instance.new(class) for k, v in pairs(props) do inst[k] = v end inst.Parent = parent return inst end ---------------------------------------------------------------- -- [4] TARGET SCAN (Model có Humanoid sống, không phải người chơi) ---------------------------------------------------------------- local Targets = {} local infoText = "Đang quét..." local function validTarget(model, originPos) if model == LocalPlayer.Character then return nil end if Players:GetPlayerFromCharacter(model) then return nil end local hum = model:FindFirstChildOfClass("Humanoid") if not hum or hum.Health <= 0 then return nil end local part = model:FindFirstChild("HumanoidRootPart") or model.PrimaryPart if not part then return nil end if (part.Position - originPos).Magnitude > CONFIG.ScanRange then return nil end return hum, part end local function scanTargets() local root = getRoot() if not root then Targets = {} infoText = "Chưa có nhân vật" return end local result = {} local nearestName, nearestDist for _, inst in ipairs(CONFIG.TargetFolder:GetDescendants()) do if inst:IsA("Humanoid") then local model = inst.Parent if model and model:IsA("Model") then local hum, part = validTarget(model, root.Position) if hum then table.insert(result, { Model = model, Humanoid = hum, Root = part }) local d = (part.Position - root.Position).Magnitude if not nearestDist or d < nearestDist then nearestDist, nearestName = d, model.Name end end end end end Targets = result if nearestName then infoText = string.format("Mục tiêu trong %d studs: %d\nGần nhất: %s (%.0f m)", CONFIG.ScanRange, #result, nearestName, nearestDist) else infoText = string.format("Mục tiêu trong %d studs: 0", CONFIG.ScanRange) end end ---------------------------------------------------------------- -- [5] GUI ---------------------------------------------------------------- local ScreenGui = new("ScreenGui", { Name = "HpTeamProV1", ResetOnSpawn = false, IgnoreGuiInset = true, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 100, }, PlayerGui) local EspLayer = new("Frame", { Name = "EspLayer", BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1), Active = false, }, ScreenGui) local Menu = new("Frame", { Name = "Menu", Size = UDim2.fromOffset(350, 200), -- ngang 350, dài 200 Position = UDim2.fromOffset(40, 80), BackgroundColor3 = COLORS.BG, BorderSizePixel = 0, ClipsDescendants = true, }, ScreenGui) new("UICorner", { CornerRadius = UDim.new(0, 6) }, Menu) new("UIStroke", { Color = COLORS.GREEN, Thickness = 1.5 }, Menu) -- Thanh tiêu đề local TitleBar = new("Frame", { Size = UDim2.new(1, 0, 0, 28), BackgroundColor3 = COLORS.BG2, BorderSizePixel = 0, }, Menu) new("TextLabel", { Text = "Hp Team Pro V1", Size = UDim2.new(1, -70, 1, 0), Position = UDim2.fromOffset(8, 0), BackgroundTransparency = 1, TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 14, TextXAlignment = Enum.TextXAlignment.Left, }, TitleBar) local function titleButton(text, xOffset) local b = new("TextButton", { Text = text, Size = UDim2.fromOffset(24, 22), Position = UDim2.new(1, xOffset, 0, 3), BackgroundColor3 = COLORS.DIM, TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 14, AutoButtonColor = true, BorderSizePixel = 0, }, TitleBar) new("UICorner", { CornerRadius = UDim.new(0, 4) }, b) return b end local BtnMin = titleButton("-", -56) local BtnClose = titleButton("X", -28) -- Thanh tab local TabBar = new("Frame", { Position = UDim2.fromOffset(0, 28), Size = UDim2.new(1, 0, 0, 24), BackgroundTransparency = 1, }, Menu) local Content = new("Frame", { Position = UDim2.fromOffset(6, 56), Size = UDim2.new(1, -12, 1, -62), BackgroundTransparency = 1, }, Menu) local Pages = {} local TabButtons = {} local TabNames = { "Main", "Esp", "Khác" } local function makePage(name) local page = new("ScrollingFrame", { Name = name, Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, ScrollBarImageColor3 = COLORS.GREEN, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, ScrollingDirection = Enum.ScrollingDirection.Y, Visible = false, }, Content) new("UIListLayout", { Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }, page) Pages[name] = page return page end local function showTab(name) for n, page in pairs(Pages) do page.Visible = (n == name) TabButtons[n].BackgroundColor3 = (n == name) and COLORS.GREEN or COLORS.DIM TabButtons[n].TextColor3 = (n == name) and COLORS.BG or COLORS.GREEN end end for i, name in ipairs(TabNames) do makePage(name) local b = new("TextButton", { Text = name, Size = UDim2.new(1 / 3, -4, 1, -4), Position = UDim2.new((i - 1) / 3, 2, 0, 2), BackgroundColor3 = COLORS.DIM, TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0, AutoButtonColor = false, }, TabBar) new("UICorner", { CornerRadius = UDim.new(0, 4) }, b) TabButtons[name] = b track(b.Activated:Connect(function() showTab(name) end)) end -- Hàng chức năng local function makeRow(page, height) local row = new("Frame", { Size = UDim2.new(1, -6, 0, height or 26), BackgroundColor3 = COLORS.BG2, BorderSizePixel = 0, }, page) new("UICorner", { CornerRadius = UDim.new(0, 4) }, row) return row end local function rowLabel(row, text, rightPad) return new("TextLabel", { Text = text, Size = UDim2.new(1, -(rightPad or 70), 1, 0), Position = UDim2.fromOffset(8, 0), BackgroundTransparency = 1, TextColor3 = COLORS.TEXT, Font = Enum.Font.Gotham, TextSize = 12, TextXAlignment = Enum.TextXAlignment.Left, TextWrapped = true, }, row) end local function refreshToggle(key) local btn = ToggleUI[key] if not btn then return end local on = State[key] == true btn.Text = on and "ON" or "OFF" btn.BackgroundColor3 = on and COLORS.GREEN or COLORS.DIM btn.TextColor3 = on and COLORS.BG or COLORS.GREEN end local function setFeature(key, on) State[key] = on local f = Features[key] if f then if on then f.enable() else f.disable() end end refreshToggle(key) end local function addToggle(pageName, label, key) local row = makeRow(Pages[pageName]) rowLabel(row, label, 70) local btn = new("TextButton", { Size = UDim2.fromOffset(56, 20), Position = UDim2.new(1, -62, 0.5, -10), Font = Enum.Font.GothamBold, TextSize = 12, BorderSizePixel = 0, AutoButtonColor = false, Text = "OFF", }, row) new("UICorner", { CornerRadius = UDim.new(0, 4) }, btn) ToggleUI[key] = btn State[key] = false refreshToggle(key) track(btn.Activated:Connect(function() setFeature(key, not State[key]) end)) end local function addStepper(pageName, label, getVal, setVal, min, max, step) local row = makeRow(Pages[pageName]) rowLabel(row, label, 110) local function stepBtn(text, x) local b = new("TextButton", { Text = text, Size = UDim2.fromOffset(22, 20), Position = UDim2.new(1, x, 0.5, -10), BackgroundColor3 = COLORS.DIM, TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 14, BorderSizePixel = 0, }, row) new("UICorner", { CornerRadius = UDim.new(0, 4) }, b) return b end local minus = stepBtn("-", -98) local valueLabel = new("TextLabel", { Text = tostring(getVal()), Size = UDim2.fromOffset(40, 26), Position = UDim2.new(1, -72, 0, 0), BackgroundTransparency = 1, TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 12, }, row) local plus = stepBtn("+", -28) track(minus.Activated:Connect(function() setVal(math.clamp(getVal() - step, min, max)) valueLabel.Text = tostring(getVal()) end)) track(plus.Activated:Connect(function() setVal(math.clamp(getVal() + step, min, max)) valueLabel.Text = tostring(getVal()) end)) end -- Nút Fly lên / xuống local flyUp, flyDown = false, false local FlyButtons = new("Frame", { Name = "FlyButtons", Size = UDim2.fromOffset(56, 116), Position = UDim2.new(1, -72, 0.5, -58), BackgroundTransparency = 1, Visible = false, }, ScreenGui) local function flyButton(text, y, setter) local b = new("TextButton", { Text = text, Size = UDim2.fromOffset(56, 56), Position = UDim2.fromOffset(0, y), BackgroundColor3 = COLORS.BG, TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 22, AutoButtonColor = false, BorderSizePixel = 0, }, FlyButtons) new("UICorner", { CornerRadius = UDim.new(0, 8) }, b) new("UIStroke", { Color = COLORS.GREEN, Thickness = 1.5 }, b) track(b.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then setter(true) local c c = input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then setter(false) c:Disconnect() end end) end end)) return b end flyButton("▲", 0, function(v) flyUp = v end) flyButton("▼", 60, function(v) flyDown = v end) ---------------------------------------------------------------- -- [6] KÉO THẢ MENU (chuột + cảm ứng) ---------------------------------------------------------------- local dragging, dragStart, startPos = false, nil, nil track(TitleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = Menu.Position local c c = input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false c:Disconnect() end end) end end)) track(UIS.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then local delta = input.Position - dragStart local cam = Workspace.CurrentCamera local vp = cam and cam.ViewportSize or Vector2.new(1280, 720) local x = math.clamp(startPos.X.Offset + delta.X, -290, vp.X - 60) local y = math.clamp(startPos.Y.Offset + delta.Y, 0, vp.Y - 28) Menu.Position = UDim2.fromOffset(x, y) end end)) ---------------------------------------------------------------- -- [7] ESP (dùng GUI Frame/TextLabel + Highlight) ---------------------------------------------------------------- local espEntries = {} local function createEntry(model) local e = {} e.Line = new("Frame", { AnchorPoint = Vector2.new(0.5, 0.5), BackgroundColor3 = COLORS.GREEN, BorderSizePixel = 0, Visible = false, }, EspLayer) e.Box = new("Frame", { BackgroundTransparency = 1, BorderSizePixel = 0, Visible = false }, EspLayer) new("UIStroke", { Color = COLORS.GREEN, Thickness = 1.5 }, e.Box) e.NameLabel = new("TextLabel", { BackgroundTransparency = 1, Size = UDim2.fromOffset(160, 14), AnchorPoint = Vector2.new(0.5, 1), Text = model.Name, TextColor3 = COLORS.TEXT, Font = Enum.Font.GothamBold, TextSize = 12, TextStrokeTransparency = 0.4, Visible = false, }, EspLayer) e.DistLabel = new("TextLabel", { BackgroundTransparency = 1, Size = UDim2.fromOffset(100, 14), AnchorPoint = Vector2.new(0.5, 0), Text = "", TextColor3 = COLORS.GREEN, Font = Enum.Font.GothamBold, TextSize = 12, TextStrokeTransparency = 0.4, Visible = false, }, EspLayer) espEntries[model] = e return e end local function destroyEntry(model) local e = espEntries[model] if not e then return end e.Line:Destroy() e.Box:Destroy() e.NameLabel:Destroy() e.DistLabel:Destroy() if e.Highlight then e.Highlight:Destroy() end espEntries[model] = nil end local function clearEsp() for model in pairs(espEntries) do destroyEntry(model) end end local function updateEsp() local anyOn = State.EspLine or State.EspBox or State.EspName or State.EspDistance or State.EspHologram if not anyOn then if next(espEntries) then clearEsp() end return end local cam = Workspace.CurrentCamera local root = getRoot() if not cam or not root then clearEsp() return end local vp = cam.ViewportSize local alive = {} for _, t in ipairs(Targets) do local model, part = t.Model, t.Root if model.Parent and part.Parent and t.Humanoid.Health > 0 then local dist = (part.Position - root.Position).Magnitude if dist <= CONFIG.ScanRange then alive[model] = true local e = espEntries[model] or createEntry(model) -- Hologram (xuyên tường) if State.EspHologram then if not e.Highlight or not e.Highlight.Parent then e.Highlight = new("Highlight", { Adornee = model, FillColor = COLORS.GREEN, FillTransparency = 0.6, OutlineColor = COLORS.GREEN, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop, }, model) end elseif e.Highlight then e.Highlight:Destroy() e.Highlight = nil end -- Line local p3 = cam:WorldToViewportPoint(part.Position) local front = p3.Z > 0 if State.EspLine and front then local a = Vector2.new(vp.X / 2, 0) local b = Vector2.new(p3.X, p3.Y) local d = b - a e.Line.Size = UDim2.fromOffset(d.Magnitude, 2) e.Line.Position = UDim2.fromOffset((a.X + b.X) / 2, (a.Y + b.Y) / 2) e.Line.Rotation = math.deg(math.atan2(d.Y, d.X)) e.Line.Visible = true else e.Line.Visible = false end -- Box / Name / Distance local needBox = State.EspBox or State.EspName or State.EspDistance local okBox = false local minX, minY, maxX, maxY = math.huge, math.huge, -math.huge, -math.huge if needBox then okBox = true local cf, size = model:GetBoundingBox() for sx = -1, 1, 2 do for sy = -1, 1, 2 do for sz = -1, 1, 2 do local corner = cf * Vector3.new(sx * size.X / 2, sy * size.Y / 2, sz * size.Z / 2) local p = cam:WorldToViewportPoint(corner) if p.Z <= 0 then okBox = false end minX = math.min(minX, p.X) minY = math.min(minY, p.Y) maxX = math.max(maxX, p.X) maxY = math.max(maxY, p.Y) end end end end if okBox then local cx = (minX + maxX) / 2 e.Box.Position = UDim2.fromOffset(minX, minY) e.Box.Size = UDim2.fromOffset(maxX - minX, maxY - minY) e.Box.Visible = State.EspBox == true e.NameLabel.Text = model.Name e.NameLabel.Position = UDim2.fromOffset(cx, minY - 2) e.NameLabel.Visible = State.EspName == true e.DistLabel.Text = string.format("%.0f m", dist) e.DistLabel.Position = UDim2.fromOffset(cx, maxY + 2) e.DistLabel.Visible = State.EspDistance == true else e.Box.Visible = false e.NameLabel.Visible = false e.DistLabel.Visible = false end end end end for model in pairs(espEntries) do if not alive[model] then destroyEntry(model) end end end ---------------------------------------------------------------- -- [8] TÍNH NĂNG TAB "KHÁC" ---------------------------------------------------------------- -- No Clip local noclipOrig = setmetatable({}, { __mode = "k" }) Features.NoClip = { enable = function() end, -- xử lý trong Stepped disable = function() for part in pairs(noclipOrig) do if part.Parent then part.CanCollide = true end noclipOrig[part] = nil end end, } -- Fly Air local flyBV = nil local function stopFly() if flyBV then flyBV:Destroy() flyBV = nil end FlyButtons.Visible = false flyUp, flyDown = false, false end Features.FlyAir = { enable = function() stopFly() local root = getRoot() if not root then return end flyBV = new("BodyVelocity", { MaxForce = Vector3.new(1e9, 1e9, 1e9), Velocity = Vector3.zero, -- đứng yên khi không có input => không tự rơi }, root) FlyButtons.Visible = true end, disable = stopFly, } -- Speed local origWalk = nil Features.Speed = { enable = function() local h = getHumanoid() if h and not origWalk then origWalk = h.WalkSpeed end end, disable = function() local h = getHumanoid() if h and origWalk then h.WalkSpeed = origWalk end origWalk = nil end, } -- Night Vision local nvSaved = nil local function nvEnable() if nvSaved then return end nvSaved = { Brightness = Lighting.Brightness, ClockTime = Lighting.ClockTime, GlobalShadows = Lighting.GlobalShadows, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, FogStart = Lighting.FogStart, FogEnd = Lighting.FogEnd, Atmos = {}, } for _, a in ipairs(Lighting:GetChildren()) do if a:IsA("Atmosphere") then nvSaved.Atmos[a] = { Density = a.Density, Haze = a.Haze } end end end local function nvApply() Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.GlobalShadows = false Lighting.Ambient = Color3.fromRGB(180, 180, 180) Lighting.OutdoorAmbient = Color3.fromRGB(180, 180, 180) Lighting.FogStart = 0 Lighting.FogEnd = 1e6 for _, a in ipairs(Lighting:GetChildren()) do if a:IsA("Atmosphere") then a.Density = 0 a.Haze = 0 end end end Features.NightVision = { enable = function() nvEnable() nvApply() end, disable = function() if not nvSaved then return end Lighting.Brightness = nvSaved.Brightness Lighting.ClockTime = nvSaved.ClockTime Lighting.GlobalShadows = nvSaved.GlobalShadows Lighting.Ambient = nvSaved.Ambient Lighting.OutdoorAmbient = nvSaved.OutdoorAmbient Lighting.FogStart = nvSaved.FogStart Lighting.FogEnd = nvSaved.FogEnd for a, v in pairs(nvSaved.Atmos) do if a.Parent then a.Density = v.Density a.Haze = v.Haze end end nvSaved = nil end, } ---------------------------------------------------------------- -- [9] XÂY DỰNG DANH SÁCH CHỨC NĂNG ---------------------------------------------------------------- -- Tab Main do local row = makeRow(Pages.Main, 40) local info = rowLabel(row, infoText, 10) track(RunService.Heartbeat:Connect(function() if info.Parent then info.Text = infoText end end)) addStepper("Main", "Phạm vi quét", function() return CONFIG.ScanRange end, function(v) CONFIG.ScanRange = v end, CONFIG.RangeMin, CONFIG.RangeMax, CONFIG.RangeStep) end -- Tab Esp addToggle("Esp", "Esp Line", "EspLine") addToggle("Esp", "Esp Box", "EspBox") addToggle("Esp", "Esp Name", "EspName") addToggle("Esp", "Esp Distance", "EspDistance") addToggle("Esp", "Esp Hologram", "EspHologram") -- Tab Khác addToggle("Khác", "No Clip", "NoClip") addToggle("Khác", "Fly Air", "FlyAir") addStepper("Khác", "Fly Speed", function() return Values.FlySpeed end, function(v) Values.FlySpeed = v end, CONFIG.FlySpeedMin, CONFIG.FlySpeedMax, CONFIG.FlySpeedStep) addToggle("Khác", "Speed", "Speed") addStepper("Khác", "Speed Value", function() return Values.WalkSpeed end, function(v) Values.WalkSpeed = v end, CONFIG.WalkSpeedMin, CONFIG.WalkSpeedMax, CONFIG.WalkSpeedStep) addToggle("Khác", "Jumping Air", "JumpAir") addToggle("Khác", "Night Vision", "NightVision") ---------------------------------------------------------------- -- [10] VÒNG LẶP CHÍNH ---------------------------------------------------------------- local scanAcc = CONFIG.ScanInterval track(RunService.Stepped:Connect(function() if not State.NoClip then return end local c = LocalPlayer.Character if not c then return end for _, p in ipairs(c:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then noclipOrig[p] = true p.CanCollide = false end end end)) track(RunService.Heartbeat:Connect(function(dt) -- Quét mục tiêu scanAcc += dt if scanAcc >= CONFIG.ScanInterval then scanAcc = 0 scanTargets() end -- Speed if State.Speed then local h = getHumanoid() if h and h.WalkSpeed ~= Values.WalkSpeed then h.WalkSpeed = Values.WalkSpeed end end -- Night Vision (giữ nguyên nếu game đổi lại ánh sáng) if State.NightVision and nvSaved then nvApply() end end)) track(RunService.RenderStepped:Connect(function() -- Fly if State.FlyAir and flyBV and flyBV.Parent then local h = getHumanoid() local move = h and h.MoveDirection or Vector3.zero local typing = UIS:GetFocusedTextBox() ~= nil local vertical = 0 if flyUp or (not typing and UIS:IsKeyDown(CONFIG.UpKey)) then vertical += 1 end if flyDown or (not typing and UIS:IsKeyDown(CONFIG.DownKey)) then vertical -= 1 end local s = Values.FlySpeed flyBV.Velocity = Vector3.new(move.X * s, vertical * s, move.Z * s) end -- Esp updateEsp() end)) -- Jumping Air track(UIS.JumpRequest:Connect(function() if State.JumpAir then local h = getHumanoid() if h then h:ChangeState(Enum.HumanoidStateType.Jumping) end end end)) -- Áp dụng lại tính năng khi hồi sinh track(LocalPlayer.CharacterAdded:Connect(function(char) char:WaitForChild("HumanoidRootPart", 10) char:WaitForChild("Humanoid", 10) origWalk = nil for key, on in pairs(State) do if on then local f = Features[key] if f then f.enable() end end end end)) ---------------------------------------------------------------- -- [11] THU NHỎ / THOÁT ---------------------------------------------------------------- local minimized = false track(BtnMin.Activated:Connect(function() minimized = not minimized TabBar.Visible = not minimized Content.Visible = not minimized Menu.Size = UDim2.fromOffset(350, minimized and 28 or 200) BtnMin.Text = minimized and "+" or "-" end)) local function destroyAll() if destroyed then return end destroyed = true for key, on in pairs(State) do if on then State[key] = false local f = Features[key] if f then f.disable() end end end clearEsp() for _, c in ipairs(connections) do c:Disconnect() end table.clear(connections) ScreenGui:Destroy() end track(BtnClose.Activated:Connect(destroyAll)) ---------------------------------------------------------------- -- [12] KHỞI ĐỘNG ---------------------------------------------------------------- showTab("Main") scanTargets()