--[[ Hp Team Pro V1 | Dành cho game Roblox do chính bạn phát triển (chạy bằng Delta) Tab: Main / Esp / Khác Phạm vi quét mặc định: 150 (chỉnh ở CFG.Range) ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UIS = game:GetService("UserInputService") local VirtualUser = game:GetService("VirtualUser") local StarterGui = game:GetService("StarterGui") local Workspace = game:GetService("Workspace") local lp = Players.LocalPlayer local cam = Workspace.CurrentCamera local mouse = lp:GetMouse() -- Chống chạy trùng local holderParent do local ok, h = pcall(function() return gethui and gethui() end) holderParent = (ok and h) or pcall(function() return game:GetService("CoreGui").Name end) and game:GetService("CoreGui") or lp:WaitForChild("PlayerGui") end if holderParent:FindFirstChild("HpTeamProV1") then holderParent.HpTeamProV1:Destroy() end if holderParent:FindFirstChild("HpTeamFly") then holderParent.HpTeamFly:Destroy() end if holderParent:FindFirstChild("HpTeamESP") then holderParent.HpTeamESP:Destroy() end if holderParent:FindFirstChild("HpTeamESPGui") then holderParent.HpTeamESPGui:Destroy() end ---------------------------------------------------------------- -- CẤU HÌNH ---------------------------------------------------------------- local CFG = { Range = 150, -- phạm vi quét TeleDistance = 4, -- đứng sau mục tiêu bao xa khi Tele Kill FlySpeed = 60, WalkSpeed = 40, AttackDelay = 0.1, UseDrawing = false, -- false: ESP vẽ bằng GUI (chạy trên mọi executor). true: dùng Drawing API EspMaxSize = 60, -- Esp bỏ qua model lớn hơn mức này (nhà, cây to...). Model có Humanoid luôn được vẽ EspMaxCount = 40, -- số model gần nhất được vẽ cùng lúc } -- Từ khóa mục tiêu KHÔNG gây hại (Tele Kill V1 sẽ bỏ qua). -- Model có Attribute Friendly/Harmless = true cũng bị bỏ qua. local HarmlessWords = { "shop", "vendor", "trader", "merchant", "quest", "pet", "friendly", "villager", "shopkeeper", "dummy", "npc_safe" } -- showLabel = false: chỉ hiện hologram, không hiện chữ local ItemTypes = { { flag = "EspChest", label = "Rương", showLabel = false, color = Color3.fromRGB(255, 200, 0), words = { "chest", "rương", "ruong", "treasure", "lootbox" } }, { flag = "EspGun", label = "Súng", showLabel = true, color = Color3.fromRGB(255, 60, 60), words = { "gun", "rifle", "pistol", "shotgun", "smg", "ak47", "m4a1", "sniper", "súng", "sung" } }, { flag = "EspMed", label = "Cứu thương", showLabel = false, color = Color3.fromRGB(60, 255, 120), words = { "medkit", "medic", "firstaid", "first aid", "bandage", "healthkit", "health kit", "healthpack", "cứu thương", "cuuthuong" } }, } -- Tên chứa các từ này sẽ bị loại (tránh quét nhầm bộ phận cơ thể, thanh máu, hitbox...) local ItemExclude = { "chestplate", "chestarmor", "armor", "healthbar", "hitbox", "spawn", "region", "zone", "emitter", "gunner", "effect", "gui" } local GREEN = Color3.fromRGB(0, 255, 70) local WHITE = Color3.fromRGB(255, 255, 255) local State = {} local Loops = {} local Conns = {} local closed = false local function track(c) Conns[#Conns + 1] = c return c end local function notify(text) pcall(function() StarterGui:SetCore("SendNotification", { Title = "Hp Team Pro V1", Text = text, Duration = 3 }) end) end local function startLoop(name, interval, fn) local token = {} Loops[name] = token task.spawn(function() while Loops[name] == token and not closed do pcall(fn) task.wait(interval) end end) end local function stopLoop(name) Loops[name] = nil end ---------------------------------------------------------------- -- MỤC TIÊU (NPC / MOD) ---------------------------------------------------------------- local Mobs = {} local function isPlayerChar(m) return Players:GetPlayerFromCharacter(m) ~= nil end local function addHum(h) if h:IsA("Humanoid") then local m = h.Parent if m and m:IsA("Model") and m ~= lp.Character then Mobs[m] = h end end end task.spawn(function() local n = 0 for _, d in ipairs(Workspace:GetDescendants()) do addHum(d) n += 1 if n % 2000 == 0 then task.wait() end end end) track(Workspace.DescendantAdded:Connect(addHum)) track(Workspace.DescendantRemoving:Connect(function(d) if d:IsA("Humanoid") and d.Parent then Mobs[d.Parent] = nil end end)) local function isHarmless(m) if m:GetAttribute("Friendly") or m:GetAttribute("Harmless") then return true end local n = m.Name:lower() for _, w in ipairs(HarmlessWords) do if n:find(w, 1, true) then return true end end return false end local function getRoot(m) return m:FindFirstChild("HumanoidRootPart") or m.PrimaryPart or m:FindFirstChildWhichIsA("BasePart") end local function aimPart(m) return m:FindFirstChild("Head") or getRoot(m) end local function myRoot() local c = lp.Character return c and c:FindFirstChild("HumanoidRootPart") end local function myHum() local c = lp.Character return c and c:FindFirstChildOfClass("Humanoid") end -- trả về model, root, khoảng cách của mục tiêu gần nhất trong phạm vi local function nearest(filterHarmless) local r = myRoot() if not r then return end local bm, bp, bd for m, h in pairs(Mobs) do if m.Parent and h.Parent == m and h.Health > 0 and not isPlayerChar(m) and not (filterHarmless and isHarmless(m)) then local p = getRoot(m) if p then local d = (p.Position - r.Position).Magnitude if d <= CFG.Range and (not bd or d < bd) then bm, bp, bd = m, p, d end end end end return bm, bp, bd end ---------------------------------------------------------------- -- TẤN CÔNG ---------------------------------------------------------------- local function getTool() local c = lp.Character if not c then return end local t = c:FindFirstChildOfClass("Tool") if not t then local bp = lp:FindFirstChildOfClass("Backpack") t = bp and bp:FindFirstChildOfClass("Tool") local hum = myHum() if t and hum then hum:EquipTool(t) end end return t end local function attack() local t = getTool() if t then -- có Tool: chỉ Activate, không giả lập click (click giả làm nhiễu việc chạm vào menu) pcall(function() t:Activate() end) return end pcall(function() VirtualUser:Button1Down(Vector2.new(0, 0), cam.CFrame) VirtualUser:Button1Up(Vector2.new(0, 0), cam.CFrame) end) end -- Tele Kill Pro: khóa 1 mục tiêu đến khi chết, bám theo mỗi frame local lockTarget local homeCF local engaged = false local returnFrames = 0 local function moveChar(cf) local c, r = lp.Character, myRoot() if c and r then c:PivotTo(cf) r.AssemblyLinearVelocity = Vector3.zero r.AssemblyAngularVelocity = Vector3.zero end end local function alive(m) local h = Mobs[m] if not (h and m.Parent and h.Parent == m) then return false end if h.Health <= 0 or h:GetState() == Enum.HumanoidStateType.Dead then return false end return true end local function lockValid(m, r) if not alive(m) then return false end local p = getRoot(m) return p ~= nil and (p.Position - r.Position).Magnitude <= CFG.Range end local function pickLock(filter) local r = myRoot() if not r then return end if lockTarget and not lockValid(lockTarget, r) then lockTarget = nil end if not lockTarget then lockTarget = (nearest(filter)) end return lockTarget end -- tele về vị trí ban đầu (giữ vị trí thêm vài frame đề phòng game kéo nhân vật đi) local function returnHome() if engaged and homeCF then moveChar(homeCF) returnFrames = 20 end engaged = false lockTarget = nil end track(lp.CharacterAdded:Connect(function() engaged, lockTarget, returnFrames = false, nil, 0 end)) track(RunService.Heartbeat:Connect(function() if closed then return end if returnFrames > 0 and not engaged and homeCF then returnFrames -= 1 moveChar(homeCF) end if not State.TK1 then return end local r = myRoot() if not r then return end local m = pickLock(false) if not m then returnHome() -- hết mục tiêu: tele về vị trí ban đầu return end if not engaged then homeCF = r.CFrame -- ghi nhớ vị trí trước khi bắt đầu tele engaged = true returnFrames = 0 end local p = getRoot(m) if not p then return end -- giữ nguyên phía đang đứng, chỉ bám theo vị trí mục tiêu => không rung khi mục tiêu xoay local flat = Vector3.new(r.Position.X - p.Position.X, 0, r.Position.Z - p.Position.Z) if flat.Magnitude < 0.1 then flat = -p.CFrame.LookVector end local pos = p.Position + flat.Unit * CFG.TeleDistance moveChar(CFrame.lookAt(pos, Vector3.new(p.Position.X, pos.Y, p.Position.Z))) end)) ---------------------------------------------------------------- -- AIMBOT + AIM MAGIC + AUTO BẮN ---------------------------------------------------------------- track(RunService.RenderStepped:Connect(function() cam = Workspace.CurrentCamera if State.Aim then local m = nearest(false) if m then local ap = aimPart(m) if ap then cam.CFrame = CFrame.lookAt(cam.CFrame.Position, ap.Position) end end end end)) local magicPart local nc = newcclosure or function(f) return f end local cc = checkcaller or function() return false end if hookmetamethod and getnamecallmethod then local oldNC oldNC = hookmetamethod(game, "__namecall", nc(function(self, ...) local method = getnamecallmethod() if State.Magic and magicPart and self == Workspace and not cc() then local n = select("#", ...) local a = { ... } if method == "Raycast" and typeof(a[1]) == "Vector3" and typeof(a[2]) == "Vector3" then a[2] = (magicPart.Position - a[1]).Unit * a[2].Magnitude return oldNC(self, table.unpack(a, 1, n)) elseif (method == "FindPartOnRay" or method == "FindPartOnRayWithIgnoreList" or method == "FindPartOnRayWithWhitelist") and typeof(a[1]) == "Ray" then local o = a[1] a[1] = Ray.new(o.Origin, (magicPart.Position - o.Origin).Unit * o.Direction.Magnitude) return oldNC(self, table.unpack(a, 1, n)) end end return oldNC(self, ...) end)) local oldIdx oldIdx = hookmetamethod(game, "__index", nc(function(self, k) if State.Magic and magicPart and self == mouse and not cc() then if k == "Hit" then return CFrame.new(magicPart.Position) end if k == "Target" then return magicPart end end return oldIdx(self, k) end)) else notify("Executor không hỗ trợ hookmetamethod: Aim Magic sẽ không hoạt động.") end local function setMagic(on) State.Magic = on if on then startLoop("magic", 0.05, function() local m = nearest(false) magicPart = m and aimPart(m) or nil end) else stopLoop("magic") magicPart = nil end end local autoPart local function autoShoot() if not State.AutoShoot then return end local m = nearest(false) if not m then autoPart = nil return end local ap = aimPart(m) if ap then autoPart = ap if not State.Magic then magicPart = ap end cam.CFrame = CFrame.lookAt(cam.CFrame.Position, ap.Position) end attack() end ---------------------------------------------------------------- -- ESP MODEL / NPC: quét TOÀN BỘ Model trong phạm vi ---------------------------------------------------------------- local hasDraw = CFG.UseDrawing and pcall(function() local d = Drawing.new("Line") d:Remove() end) local ESP = {} local espGui = Instance.new("ScreenGui") espGui.Name = "HpTeamESPGui" espGui.ResetOnSpawn = false espGui.IgnoreGuiInset = true espGui.DisplayOrder = 5 espGui.Parent = holderParent -- Bộ vẽ dự phòng bằng GUI (giả lập Drawing: Line / Square / Text) local function guiDraw(kind, props) local data = {} local inst, stroke if kind == "Line" then inst = Instance.new("Frame") inst.BorderSizePixel = 0 inst.AnchorPoint = Vector2.new(0.5, 0.5) elseif kind == "Square" then inst = Instance.new("Frame") inst.BackgroundTransparency = 1 inst.BorderSizePixel = 0 stroke = Instance.new("UIStroke") stroke.Parent = inst else inst = Instance.new("TextLabel") inst.BackgroundTransparency = 1 inst.AnchorPoint = Vector2.new(0.5, 0) inst.Font = Enum.Font.GothamBold inst.TextStrokeTransparency = 0 inst.Size = UDim2.fromOffset(200, 16) end inst.Visible = false inst.Active = false inst.Parent = espGui local function layout() if kind == "Line" then local a, b = data.From, data.To if a and b then local delta = b - a inst.Size = UDim2.fromOffset(delta.Magnitude, data.Thickness or 1) inst.Position = UDim2.fromOffset((a.X + b.X) / 2, (a.Y + b.Y) / 2) inst.Rotation = math.deg(math.atan2(delta.Y, delta.X)) end elseif kind == "Square" then if data.Position and data.Size then inst.Position = UDim2.fromOffset(data.Position.X, data.Position.Y) inst.Size = UDim2.fromOffset(data.Size.X, data.Size.Y) end elseif data.Position then inst.Position = UDim2.fromOffset(data.Position.X, data.Position.Y) end end local proxy = setmetatable({}, { __newindex = function(_, k, v) data[k] = v if k == "Visible" then inst.Visible = v elseif k == "Color" then if kind == "Line" then inst.BackgroundColor3 = v elseif kind == "Square" then stroke.Color = v else inst.TextColor3 = v end elseif k == "Thickness" then if kind == "Square" then stroke.Thickness = v else layout() end elseif k == "Text" then inst.Text = v elseif k == "Size" and kind == "Text" then inst.TextSize = v elseif k == "From" or k == "To" or k == "Position" or k == "Size" then layout() end end, __index = function(_, k) if k == "Remove" then return function() inst:Destroy() end end return data[k] end, }) for k, v in pairs(props) do proxy[k] = v end return proxy end local function mk(t, props) if hasDraw then local d = Drawing.new(t) for k, v in pairs(props) do d[k] = v end return d end return guiDraw(t, props) end local function getEsp(m) local e = ESP[m] if e then return e end e = { l1 = mk("Line", { Thickness = 1, Color = GREEN, Visible = false }), l2 = mk("Line", { Thickness = 1, Color = Color3.fromRGB(255, 255, 0), Visible = false }), box = mk("Square", { Thickness = 1, Filled = false, Color = GREEN, Visible = false }), name = mk("Text", { Size = 14, Center = true, Outline = true, Color = WHITE, Visible = false }), dist = mk("Text", { Size = 13, Center = true, Outline = true, Color = Color3.fromRGB(200, 200, 200), Visible = false }), } ESP[m] = e return e end local function hideEsp(e) for _, d in pairs(e) do d.Visible = false end end local function freeEsp(m) local e = ESP[m] if e then for _, d in pairs(e) do pcall(function() d:Remove() end) end ESP[m] = nil end end local function espOn() return State.EspLine or State.EspBox or State.EspName or State.EspDist end -- Danh sách mọi Model trong Workspace local AllModels = {} local sizeCache = {} local NearModels = {} local function trackModel(d) if d:IsA("Model") then AllModels[d] = true end end task.spawn(function() local n = 0 for _, d in ipairs(Workspace:GetDescendants()) do trackModel(d) n += 1 if n % 2000 == 0 then task.wait() end end end) track(Workspace.DescendantAdded:Connect(trackModel)) track(Workspace.DescendantRemoving:Connect(function(d) AllModels[d] = nil sizeCache[d] = nil end)) -- Lọc các model gần (trong phạm vi) mỗi 0.4 giây, render chỉ vẽ danh sách này local function refreshNear() local r = myRoot() if not espOn() or not r then NearModels = {} return end local now = os.clock() local me = lp.Character local cand = {} for m in pairs(AllModels) do if not m.Parent then AllModels[m] = nil sizeCache[m] = nil elseif m ~= me and not (me and m:IsDescendantOf(me)) then local d = (m:GetPivot().Position - r.Position).Magnitude if d <= CFG.Range then local sc = sizeCache[m] if not sc or now - sc.t > 3 then sc = { t = now, size = m:GetExtentsSize() } sizeCache[m] = sc end local mag = sc.size.Magnitude if mag > 0.5 and (Mobs[m] or mag <= CFG.EspMaxSize) then cand[m] = d end end end end local list = {} for m, d in pairs(cand) do local skip = false if not Mobs[m] then local p = m.Parent while p and p ~= Workspace do if cand[p] then skip = true break end -- model con của model đã vẽ p = p.Parent end end if not skip then list[#list + 1] = { m = m, d = d } end end table.sort(list, function(a, b) return a.d < b.d end) for i = CFG.EspMaxCount + 1, #list do list[i] = nil end local inNear = {} for _, it in ipairs(list) do inNear[it.m] = true end for m in pairs(ESP) do if not inNear[m] then freeEsp(m) end end NearModels = list end startLoop("espnear", 0.4, refreshNear) track(RunService.RenderStepped:Connect(function() if closed then return end local r = myRoot() if not espOn() or not r then for _, e in pairs(ESP) do hideEsp(e) end return end local vs = cam.ViewportSize local right = cam.CFrame.RightVector local seen = {} for _, it in ipairs(NearModels) do local m = it.m if m.Parent then local cf, size = m:GetBoundingBox() local ctr, on = cam:WorldToViewportPoint(cf.Position) if on then seen[m] = true local top = cam:WorldToViewportPoint(cf.Position + Vector3.new(0, size.Y / 2, 0)) local bot = cam:WorldToViewportPoint(cf.Position - Vector3.new(0, size.Y / 2, 0)) local side = cam:WorldToViewportPoint(cf.Position + right * (math.max(size.X, size.Z) / 2)) local hh = math.max(math.abs(bot.Y - top.Y), 10) local w = math.max(math.abs(side.X - ctr.X) * 2, 8) local topY = ctr.Y - hh / 2 local botY = ctr.Y + hh / 2 local d = (cf.Position - r.Position).Magnitude local e = getEsp(m) e.box.Visible = State.EspBox == true e.box.Position = Vector2.new(ctr.X - w / 2, topY) e.box.Size = Vector2.new(w, hh) e.l1.Visible = State.EspLine == true e.l1.From = Vector2.new(vs.X / 2, 0) e.l1.To = Vector2.new(ctr.X, topY) e.l2.Visible = State.EspLine == true e.l2.From = Vector2.new(vs.X / 2, vs.Y / 2) e.l2.To = Vector2.new(ctr.X, ctr.Y) e.name.Visible = State.EspName == true e.name.Text = m.Name e.name.Position = Vector2.new(ctr.X, topY - 16) e.dist.Visible = State.EspDist == true e.dist.Text = string.format("[%dm]", math.floor(d)) e.dist.Position = Vector2.new(ctr.X, botY + 2) end end end for m, e in pairs(ESP) do if not seen[m] then hideEsp(e) end end end)) ---------------------------------------------------------------- -- ESP VẬT PHẨM (hologram Highlight xuyên tường) ---------------------------------------------------------------- local espFolder = Instance.new("Folder") espFolder.Name = "HpTeamESP" espFolder.Parent = holderParent local Items = {} local ItemVis = {} local function considerItem(inst) if not (inst:IsA("Model") or inst:IsA("Tool") or inst:IsA("BasePart")) then return end if inst:IsA("Model") and inst:FindFirstChildOfClass("Humanoid") then return end if inst:IsA("BasePart") and (inst.Transparency >= 1 or inst.Size.Magnitude < 0.6) then return end if inst:IsA("Terrain") then return end local n = inst.Name:lower() for _, w in ipairs(ItemExclude) do if n:find(w, 1, true) then return end end local t for _, ty in ipairs(ItemTypes) do for _, w in ipairs(ty.words) do if n:find(w, 1, true) then t = ty break end end if t then break end end if not t then return end local c = lp.Character if c and inst:IsDescendantOf(c) then return end local p = inst.Parent while p and p ~= Workspace do if Items[p] then return end if p:IsA("Model") and p:FindFirstChildOfClass("Humanoid") then return end p = p.Parent end Items[inst] = t end task.spawn(function() local n = 0 for _, d in ipairs(Workspace:GetDescendants()) do considerItem(d) n += 1 if n % 2000 == 0 then task.wait() end end end) track(Workspace.DescendantAdded:Connect(considerItem)) local function itemPart(inst) if inst:IsA("BasePart") then return inst end if inst:IsA("Model") then return inst.PrimaryPart or inst:FindFirstChildWhichIsA("BasePart", true) end return inst:FindFirstChild("Handle") or inst:FindFirstChildWhichIsA("BasePart", true) end local function dropVis(inst) local v = ItemVis[inst] if v then pcall(function() v.hl:Destroy() end) if v.bb then pcall(function() v.bb:Destroy() end) end ItemVis[inst] = nil end end local visCount = 0 local function updateItems() local r = myRoot() if not r then return end visCount = 0 for _ in pairs(ItemVis) do visCount += 1 end for inst, t in pairs(Items) do if not inst.Parent then Items[inst] = nil dropVis(inst) else local part = itemPart(inst) local want = false if part and State[t.flag] then local d = (part.Position - r.Position).Magnitude if d <= CFG.Range then local v = ItemVis[inst] if not v and visCount < 30 then -- giới hạn Highlight của Roblox local hl = Instance.new("Highlight") hl.Adornee = inst hl.FillColor = t.color hl.OutlineColor = WHITE hl.FillTransparency = 0.45 hl.OutlineTransparency = 0 hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.Parent = inst local bb, lbl if t.showLabel then bb = Instance.new("BillboardGui") bb.Adornee = part bb.AlwaysOnTop = true bb.Size = UDim2.fromOffset(140, 20) bb.StudsOffset = Vector3.new(0, 2, 0) bb.Parent = part lbl = Instance.new("TextLabel") lbl.BackgroundTransparency = 1 lbl.Size = UDim2.fromScale(1, 1) lbl.TextColor3 = t.color lbl.TextStrokeTransparency = 0 lbl.Font = Enum.Font.GothamBold lbl.TextSize = 13 lbl.Parent = bb end v = { hl = hl, bb = bb, lbl = lbl } ItemVis[inst] = v visCount += 1 end if v then want = true if v.lbl then v.lbl.Text = string.format("%s [%dm]", t.label, math.floor(d)) end end end end if not want then dropVis(inst) end end end end startLoop("items", 0.25, updateItems) ---------------------------------------------------------------- -- TAB KHÁC: NOCLIP / FLY / SPEED / JUMP AIR ---------------------------------------------------------------- track(RunService.Stepped:Connect(function() if State.Noclip and lp.Character then for _, p in ipairs(lp.Character:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then p.CanCollide = false end end end end)) local flyUp, flyDown = false, false local bv local defaultWS track(RunService.RenderStepped:Connect(function() local r, hum = myRoot(), myHum() if State.Fly and r and hum then if not bv or bv.Parent ~= r then if bv then bv:Destroy() end bv = Instance.new("BodyVelocity") bv.MaxForce = Vector3.new(1e9, 1e9, 1e9) bv.Velocity = Vector3.zero bv.Parent = r end local y = (flyUp and 1 or 0) - (flyDown and 1 or 0) bv.Velocity = hum.MoveDirection * CFG.FlySpeed + Vector3.new(0, y * CFG.FlySpeed, 0) elseif bv then bv:Destroy() bv = nil end if State.Speed and hum then defaultWS = defaultWS or 16 hum.WalkSpeed = CFG.WalkSpeed end end)) track(UIS.JumpRequest:Connect(function() if State.JumpAir then local hum = myHum() if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end)) ---------------------------------------------------------------- -- GIAO DIỆN ---------------------------------------------------------------- local function new(class, props, parent) local o = Instance.new(class) for k, v in pairs(props) do o[k] = v end o.Parent = parent return o end local gui = new("ScreenGui", { Name = "HpTeamProV1", ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling }, holderParent) local FULL_H, TITLE_H = 330, 32 local main = new("Frame", { Size = UDim2.fromOffset(310, FULL_H), Position = UDim2.new(0.5, -155, 0.5, -165), BackgroundColor3 = Color3.fromRGB(10, 10, 10), BorderSizePixel = 0, ClipsDescendants = true, Active = true, -- chặn thao tác chạm xuyên qua menu xuống game }, gui) new("UICorner", { CornerRadius = UDim.new(0, 8) }, main) new("UIStroke", { Color = GREEN, Thickness = 2 }, main) local title = new("Frame", { Size = UDim2.new(1, 0, 0, TITLE_H), BackgroundColor3 = Color3.fromRGB(15, 15, 15), BorderSizePixel = 0, Active = true }, main) new("TextLabel", { Size = UDim2.new(1, -80, 1, 0), Position = UDim2.fromOffset(10, 0), BackgroundTransparency = 1, Text = "Hp Team Pro V1", TextColor3 = GREEN, Font = Enum.Font.GothamBold, TextSize = 15, TextXAlignment = Enum.TextXAlignment.Left, }, title) local function headBtn(text, xOff, color) local b = new("TextButton", { Size = UDim2.fromOffset(26, 22), Position = UDim2.new(1, xOff, 0, 5), BackgroundColor3 = Color3.fromRGB(25, 25, 25), Text = text, TextColor3 = color, Font = Enum.Font.GothamBold, TextSize = 14, AutoButtonColor = false, }, title) new("UICorner", { CornerRadius = UDim.new(0, 5) }, b) new("UIStroke", { Color = color, Thickness = 1 }, b) return b end local btnMin = headBtn("-", -64, GREEN) local btnClose = headBtn("X", -34, Color3.fromRGB(255, 70, 70)) -- Kéo menu tự do do local dragging, dragStart, startPos title.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging, dragStart, startPos = true, i.Position, main.Position i.Changed:Connect(function() if i.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) track(UIS.InputChanged:Connect(function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = i.Position - dragStart main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + d.X, startPos.Y.Scale, startPos.Y.Offset + d.Y) end end)) end local body = new("Frame", { Size = UDim2.new(1, 0, 1, -TITLE_H), Position = UDim2.fromOffset(0, TITLE_H), BackgroundTransparency = 1 }, main) local minimized = false btnMin.MouseButton1Click:Connect(function() minimized = not minimized body.Visible = not minimized main.Size = UDim2.fromOffset(310, minimized and TITLE_H or FULL_H) btnMin.Text = minimized and "+" or "-" end) -- Tab local tabBar = new("Frame", { Size = UDim2.new(1, -10, 0, 28), Position = UDim2.fromOffset(5, 4), BackgroundTransparency = 1 }, body) new("UIListLayout", { FillDirection = Enum.FillDirection.Horizontal, Padding = UDim.new(0, 4), SortOrder = Enum.SortOrder.LayoutOrder }, tabBar) local pages, tabBtns = {}, {} local function selectTab(name) for n, pg in pairs(pages) do pg.Visible = (n == name) tabBtns[n].BackgroundColor3 = (n == name) and Color3.fromRGB(0, 110, 35) or Color3.fromRGB(22, 22, 22) end end local function makeTab(name, order) local b = new("TextButton", { Size = UDim2.new(1 / 3, -3, 1, 0), BackgroundColor3 = Color3.fromRGB(22, 22, 22), Text = name, TextColor3 = WHITE, Font = Enum.Font.GothamBold, TextSize = 13, AutoButtonColor = false, LayoutOrder = order, }, tabBar) new("UICorner", { CornerRadius = UDim.new(0, 5) }, b) new("UIStroke", { Color = GREEN, Thickness = 1 }, b) local pg = new("ScrollingFrame", { Size = UDim2.new(1, -10, 1, -42), Position = UDim2.fromOffset(5, 38), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 4, ScrollBarImageColor3 = GREEN, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, ScrollingDirection = Enum.ScrollingDirection.Y, Visible = false, }, body) new("UIListLayout", { Padding = UDim.new(0, 5), SortOrder = Enum.SortOrder.LayoutOrder }, pg) new("UIPadding", { PaddingRight = UDim.new(0, 6) }, pg) pages[name], tabBtns[name] = pg, b b.MouseButton1Click:Connect(function() selectTab(name) end) return pg end local function addToggle(page, text, callback) local row = new("Frame", { Size = UDim2.new(1, 0, 0, 32), BackgroundColor3 = Color3.fromRGB(20, 20, 20), BorderSizePixel = 0 }, page) new("UICorner", { CornerRadius = UDim.new(0, 6) }, row) new("TextLabel", { Size = UDim2.new(1, -70, 1, 0), Position = UDim2.fromOffset(8, 0), BackgroundTransparency = 1, Text = text, TextColor3 = WHITE, Font = Enum.Font.Gotham, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd, }, row) local sw = new("TextButton", { Size = UDim2.fromOffset(52, 22), Position = UDim2.new(1, -58, 0.5, -11), BackgroundColor3 = Color3.fromRGB(40, 40, 40), Text = "OFF", TextColor3 = WHITE, Font = Enum.Font.GothamBold, TextSize = 12, AutoButtonColor = false, }, row) new("UICorner", { CornerRadius = UDim.new(0, 11) }, sw) local on = false sw.Activated:Connect(function() on = not on sw.Text = on and "ON" or "OFF" sw.BackgroundColor3 = on and Color3.fromRGB(0, 150, 50) or Color3.fromRGB(40, 40, 40) task.spawn(callback, on) end) end local function addStepper(page, text, get, set, minV, maxV, step) local row = new("Frame", { Size = UDim2.new(1, 0, 0, 32), BackgroundColor3 = Color3.fromRGB(20, 20, 20), BorderSizePixel = 0 }, page) new("UICorner", { CornerRadius = UDim.new(0, 6) }, row) new("TextLabel", { Size = UDim2.new(1, -120, 1, 0), Position = UDim2.fromOffset(8, 0), BackgroundTransparency = 1, Text = text, TextColor3 = WHITE, Font = Enum.Font.Gotham, TextSize = 13, TextXAlignment = Enum.TextXAlignment.Left, }, row) local val = new("TextLabel", { Size = UDim2.fromOffset(40, 22), Position = UDim2.new(1, -82, 0.5, -11), BackgroundTransparency = 1, Text = tostring(get()), TextColor3 = GREEN, Font = Enum.Font.GothamBold, TextSize = 13, }, row) local function btn(t, x, d) local b = new("TextButton", { Size = UDim2.fromOffset(24, 22), Position = UDim2.new(1, x, 0.5, -11), BackgroundColor3 = Color3.fromRGB(35, 35, 35), Text = t, TextColor3 = GREEN, Font = Enum.Font.GothamBold, TextSize = 15, AutoButtonColor = false, }, row) new("UICorner", { CornerRadius = UDim.new(0, 5) }, b) b.MouseButton1Click:Connect(function() local v = math.clamp(get() + d, minV, maxV) set(v) val.Text = tostring(v) end) end btn("-", -108, -step) btn("+", -30, step) end -- ===== TAB MAIN ===== local pMain = makeTab("Main", 1) addToggle(pMain, "Tele Kill Pro", function(on) State.TK1 = on if not on then returnHome() end -- tắt: tele về vị trí ban đầu lockTarget = nil if on then startLoop("tk1", CFG.AttackDelay, function() if lockTarget then attack() end end) else stopLoop("tk1") end end) addToggle(pMain, "Aimbot", function(on) State.Aim = on end) addToggle(pMain, "Aim Magic", function(on) setMagic(on) end) addToggle(pMain, "Auto Bắn", function(on) State.AutoShoot = on if on then startLoop("autoshoot", CFG.AttackDelay, autoShoot) else stopLoop("autoshoot") autoPart = nil if not State.Magic then magicPart = nil end end end) -- ===== TAB ESP ===== local pEsp = makeTab("Esp", 2) addToggle(pEsp, "Esp Line", function(on) State.EspLine = on end) addToggle(pEsp, "Esp Box", function(on) State.EspBox = on end) addToggle(pEsp, "Esp Name", function(on) State.EspName = on end) addToggle(pEsp, "Esp Distance", function(on) State.EspDist = on end) addToggle(pEsp, "Esp Rương", function(on) State.EspChest = on end) addToggle(pEsp, "Esp Súng", function(on) State.EspGun = on end) addToggle(pEsp, "Esp Đồ Cứu Thương", function(on) State.EspMed = on end) -- ===== TAB KHÁC ===== local pOther = makeTab("Khác", 3) -- Nút tăng/giảm độ cao cho Fly local flyGui = new("ScreenGui", { Name = "HpTeamFly", ResetOnSpawn = false, Enabled = false }, holderParent) local function flyBtn(text, yScale, setter) local b = new("TextButton", { Size = UDim2.fromOffset(56, 56), Position = UDim2.new(1, -74, yScale, 0), BackgroundColor3 = Color3.fromRGB(10, 10, 10), BackgroundTransparency = 0.15, Text = text, TextColor3 = GREEN, Font = Enum.Font.GothamBold, TextSize = 26, AutoButtonColor = false, }, flyGui) new("UICorner", { CornerRadius = UDim.new(1, 0) }, b) new("UIStroke", { Color = GREEN, Thickness = 2 }, b) b.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.Touch or i.UserInputType == Enum.UserInputType.MouseButton1 then setter(true) end end) b.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.Touch or i.UserInputType == Enum.UserInputType.MouseButton1 then setter(false) end end) end flyBtn("▲", 0.30, function(v) flyUp = v end) flyBtn("▼", 0.30 + 0.12, function(v) flyDown = v end) addToggle(pOther, "No Clip", function(on) State.Noclip = on end) addToggle(pOther, "Fly Air", function(on) State.Fly = on flyGui.Enabled = on if not on then flyUp, flyDown = false, false end end) addStepper(pOther, "Fly Speed", function() return CFG.FlySpeed end, function(v) CFG.FlySpeed = v end, 10, 300, 10) addToggle(pOther, "Speed", function(on) State.Speed = on if not on then local hum = myHum() if hum then hum.WalkSpeed = defaultWS or 16 end end end) addStepper(pOther, "Tốc độ chạy", function() return CFG.WalkSpeed end, function(v) CFG.WalkSpeed = v end, 16, 300, 4) addToggle(pOther, "Jumping Air", function(on) State.JumpAir = on end) selectTab("Main") ---------------------------------------------------------------- -- THOÁT ---------------------------------------------------------------- btnClose.MouseButton1Click:Connect(function() if State.TK1 then returnHome() end closed = true for k in pairs(State) do State[k] = false end for k in pairs(Loops) do Loops[k] = nil end magicPart = nil for _, c in ipairs(Conns) do pcall(function() c:Disconnect() end) end for m in pairs(ESP) do freeEsp(m) end if bv then bv:Destroy() end local hum = myHum() if hum and defaultWS then hum.WalkSpeed = defaultWS end for inst in pairs(ItemVis) do dropVis(inst) end espFolder:Destroy() espGui:Destroy() flyGui:Destroy() gui:Destroy() end) notify("Đã tải Hp Team Pro V1")