-- HP Team Pro V1 | Roblox Luau LocalScript local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera -- ========================================== -- CẤU HÌNH CHUNG & TRẠNG THÁI CHỨC NĂNG -- ========================================== local Config = { MaxRange = 150, -- Phạm vi quét (studs) TeleKillOffset = Vector3.new(0, 0, 3.5), AimbotSmoothness = 0.25, AutoFireInterval = 0.15, FlySpeed = 50, WalkSpeed = 32, JumpPower = 75, } local State = { -- Tab Main TeleKill = false, Aimbot = false, AimMagic = false, AutoFire = false, -- Tab ESP EspLine = false, EspBox = false, EspName = false, EspDistance = false, EspHologram = false, -- Tab Khác NoClip = false, FlyAir = false, Speed = false, JumpAir = false, Ghost = false, } local DefaultStats = { WalkSpeed = 16, JumpPower = 50, UseJumpPower = true, } -- ========================================== -- TIỆN ÍCH NHÂN VẬT & MỤC TIÊU (MODEL / NPC) -- ========================================== local function getCharacter() return LocalPlayer.Character end local function getRootPart(char) char = char or getCharacter() if not char then return nil end return char:FindFirstChild("HumanoidRootPart") or char:FindFirstChildWhichIsA("BasePart") end local function getHumanoid(char) char = char or getCharacter() if not char then return nil end return char:FindFirstChildOfClass("Humanoid") end -- Lấy danh sách ứng viên chứa NPC/Model (ưu tiên thư mục phổ biến, fallback toàn workspace) local function getTargetContainers() local containers = {} for _, name in ipairs({ "Enemies", "NPCs", "Mobs", "Monsters" }) do local folder = workspace:FindFirstChild(name) if folder then table.insert(containers, folder) end end if #containers == 0 then table.insert(containers, workspace) end return containers end local function isValidTargetModel(model) if not model or not model:IsA("Model") then return false end if model == getCharacter() then return false end if Players:GetPlayerFromCharacter(model) then return false end local hum = model:FindFirstChildOfClass("Humanoid") local root = model:FindFirstChild("HumanoidRootPart") or model.PrimaryPart if not hum or not root then return false end if hum.Health <= 0 then return false end return true, hum, root end local function getTargetsInRange(maxRange) maxRange = maxRange or Config.MaxRange local myRoot = getRootPart() if not myRoot then return {} end local results = {} local seen = {} for _, container in ipairs(getTargetContainers()) do for _, obj in ipairs(container:GetDescendants()) do if obj:IsA("Model") and not seen[obj] then seen[obj] = true local ok, hum, root = isValidTargetModel(obj) if ok then local dist = (root.Position - myRoot.Position).Magnitude if dist <= maxRange then table.insert(results, { Model = obj, Humanoid = hum, Root = root, Distance = dist, }) end end end end end table.sort(results, function(a, b) return a.Distance < b.Distance end) return results end local function getClosestTargetToScreenCenter(maxRange) local targets = getTargetsInRange(maxRange) local center = Vector2.new(Camera.ViewportSize.X * 0.5, Camera.ViewportSize.Y * 0.5) local bestTarget = nil local bestScreenDist = math.huge for _, t in ipairs(targets) do local head = t.Model:FindFirstChild("Head") or t.Root local screenPos, onScreen = Camera:WorldToViewportPoint(head.Position) if onScreen and screenPos.Z > 0 then local d = (Vector2.new(screenPos.X, screenPos.Y) - center).Magnitude if d < bestScreenDist then bestScreenDist = d bestTarget = { Model = t.Model, Humanoid = t.Humanoid, Root = t.Root, AimPart = head, Distance = t.Distance, } end end end return bestTarget end -- ========================================== -- MÓC XỬ LÝ TẤN CÔNG / BẮN (TÙY CHỈNH THEO GAME CỦA BẠN) -- ========================================== local function triggerAttack(target) if not target then return end local char = getCharacter() if not char then return end -- 1. Nếu người chơi đang cầm Tool có hàm kích hoạt local tool = char:FindFirstChildOfClass("Tool") if tool then pcall(function() tool:Activate() end) end -- 2. Nếu game dùng RemoteEvent để gây sát thương / bắn đạn, gắn Remote của bạn tại đây: -- local attackRemote = game:GetService("ReplicatedStorage"):FindFirstChild("AttackRemote") -- if attackRemote and attackRemote:IsA("RemoteEvent") then -- attackRemote:FireServer(target.Model, target.AimPart and target.AimPart.Position or target.Root.Position) -- end end -- ========================================== -- TẠO GIAO DIỆN HP TEAM PRO V1 -- ========================================== local guiParent = LocalPlayer:WaitForChild("PlayerGui") local oldGui = guiParent:FindFirstChild("HPTeamProV1_Gui") if oldGui then oldGui:Destroy() end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "HPTeamProV1_Gui" ScreenGui.ResetOnSpawn = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = guiParent local COLOR_BG = Color3.fromRGB(12, 14, 12) local COLOR_PANEL = Color3.fromRGB(20, 24, 20) local COLOR_GREEN = Color3.fromRGB(0, 255, 102) local COLOR_GREEN_DARK = Color3.fromRGB(0, 140, 56) local COLOR_TEXT = Color3.fromRGB(235, 255, 240) local COLOR_MUTED = Color3.fromRGB(130, 165, 140) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 340, 0, 390) MainFrame.Position = UDim2.new(0.5, -170, 0.5, -195) MainFrame.BackgroundColor3 = COLOR_BG MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Parent = ScreenGui local MainCorner = Instance.new("UICorner") MainCorner.CornerRadius = UDim.new(0, 8) MainCorner.Parent = MainFrame local MainStroke = Instance.new("UIStroke") MainStroke.Color = COLOR_GREEN MainStroke.Thickness = 2 MainStroke.Parent = MainFrame -- Thanh tiêu đề (Kéo thả menu tự do) local TopBar = Instance.new("Frame") TopBar.Name = "TopBar" TopBar.Size = UDim2.new(1, 0, 0, 38) TopBar.BackgroundColor3 = COLOR_PANEL TopBar.BorderSizePixel = 0 TopBar.Parent = MainFrame local TopCorner = Instance.new("UICorner") TopCorner.CornerRadius = UDim.new(0, 8) TopCorner.Parent = TopBar local TopStroke = Instance.new("UIStroke") TopStroke.Color = COLOR_GREEN TopStroke.Thickness = 1 TopStroke.Parent = TopBar local TitleLabel = Instance.new("TextLabel") TitleLabel.Name = "TitleLabel" TitleLabel.Size = UDim2.new(1, -80, 1, 0) TitleLabel.Position = UDim2.new(0, 12, 0, 0) TitleLabel.BackgroundTransparency = 1 TitleLabel.Text = "Hp Team Pro V1" TitleLabel.TextColor3 = COLOR_GREEN TitleLabel.TextSize = 16 TitleLabel.Font = Enum.Font.GothamBold TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.Parent = TopBar local MinimizeBtn = Instance.new("TextButton") MinimizeBtn.Name = "MinimizeBtn" MinimizeBtn.Size = UDim2.new(0, 28, 0, 26) MinimizeBtn.Position = UDim2.new(1, -66, 0.5, -13) MinimizeBtn.BackgroundColor3 = COLOR_BG MainStroke:Clone().Parent = MinimizeBtn MinimizeBtn.Text = "-" MinimizeBtn.TextColor3 = COLOR_GREEN MinimizeBtn.TextSize = 18 MinimizeBtn.Font = Enum.Font.GothamBold MinimizeBtn.Parent = TopBar local CloseBtn = Instance.new("TextButton") CloseBtn.Name = "CloseBtn" CloseBtn.Size = UDim2.new(0, 28, 0, 26) CloseBtn.Position = UDim2.new(1, -34, 0.5, -13) CloseBtn.BackgroundColor3 = COLOR_BG MainStroke:Clone().Parent = CloseBtn CloseBtn.Text = "X" CloseBtn.TextColor3 = COLOR_GREEN CloseBtn.TextSize = 14 CloseBtn.Font = Enum.Font.GothamBold CloseBtn.Parent = TopBar -- Kéo thả tự do (chuột & cảm ứng) do local dragging = false local dragInput = nil local dragStart = nil local startPos = nil local function updateDrag(input) local delta = input.Position - dragStart MainFrame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end TopBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = MainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) TopBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then updateDrag(input) end end) end -- Khung nội dung chính (ẩn/hiện khi thu nhỏ) local BodyFrame = Instance.new("Frame") BodyFrame.Name = "BodyFrame" BodyFrame.Size = UDim2.new(1, 0, 1, -38) BodyFrame.Position = UDim2.new(0, 0, 0, 38) BodyFrame.BackgroundTransparency = 1 BodyFrame.Parent = MainFrame -- Thanh 3 Tab local TabBar = Instance.new("Frame") TabBar.Name = "TabBar" TabBar.Size = UDim2.new(1, -16, 0, 32) TabBar.Position = UDim2.new(0, 8, 0, 8) TabBar.BackgroundTransparency = 1 TabBar.Parent = BodyFrame local TabLayout = Instance.new("UIListLayout") TabLayout.FillDirection = Enum.FillDirection.Horizontal TabLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center TabLayout.Padding = UDim.new(0, 6) TabLayout.Parent = TabBar -- Khung cuộn dọc danh sách chức năng local ScrollList = Instance.new("ScrollingFrame") ScrollList.Name = "ScrollList" ScrollList.Size = UDim2.new(1, -16, 1, -52) ScrollList.Position = UDim2.new(0, 8, 0, 46) ScrollList.BackgroundColor3 = COLOR_PANEL ScrollList.BorderSizePixel = 0 ScrollList.ScrollBarThickness = 5 ScrollList.ScrollBarImageColor3 = COLOR_GREEN ScrollList.CanvasSize = UDim2.new(0, 0, 0, 0) ScrollList.AutomaticCanvasSize = Enum.AutomaticSize.Y ScrollList.Parent = BodyFrame local ScrollCorner = Instance.new("UICorner") ScrollCorner.CornerRadius = UDim.new(0, 6) ScrollCorner.Parent = ScrollList local ScrollStroke = Instance.new("UIStroke") ScrollStroke.Color = COLOR_GREEN ScrollStroke.Thickness = 1 ScrollStroke.Parent = ScrollList local ListLayout = Instance.new("UIListLayout") ListLayout.Padding = UDim.new(0, 8) ListLayout.SortOrder = Enum.SortOrder.LayoutOrder ListLayout.Parent = ScrollList local ListPadding = Instance.new("UIPadding") ListPadding.PaddingTop = UDim.new(0, 8) ListPadding.PaddingBottom = UDim.new(0, 8) ListPadding.PaddingLeft = UDim.new(0, 8) ListPadding.PaddingRight = UDim.new(0, 8) ListPadding.Parent = ScrollList -- Quản lý Tab & tạo Toggle / Value control local Tabs = {} local TabButtons = {} local currentTabName = "Main" local function switchTab(tabName) currentTabName = tabName for name, page in pairs(Tabs) do page.Visible = (name == tabName) end for name, btn in pairs(TabButtons) do local active = (name == tabName) btn.BackgroundColor3 = active and COLOR_GREEN_DARK or COLOR_BG btn.TextColor3 = active and COLOR_GREEN or COLOR_MUTED end end local function createTab(tabName) local btn = Instance.new("TextButton") btn.Name = "Tab_" .. tabName btn.Size = UDim2.new(0.32, -2, 1, 0) btn.BackgroundColor3 = COLOR_BG btn.Text = tabName btn.TextColor3 = COLOR_MUTED btn.TextSize = 13 btn.Font = Enum.Font.GothamBold btn.Parent = TabBar local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = btn local s = Instance.new("UIStroke") s.Color = COLOR_GREEN s.Thickness = 1 s.Parent = btn local page = Instance.new("Frame") page.Name = "Page_" .. tabName page.Size = UDim2.new(1, 0, 0, 0) page.AutomaticSize = Enum.AutomaticSize.Y page.BackgroundTransparency = 1 page.Visible = false page.Parent = ScrollList local pageLayout = Instance.new("UIListLayout") pageLayout.Padding = UDim.new(0, 8) pageLayout.SortOrder = Enum.SortOrder.LayoutOrder pageLayout.Parent = page btn.MouseButton1Click:Connect(function() switchTab(tabName) end) Tabs[tabName] = page TabButtons[tabName] = btn return page end local function createToggle(parent, labelText, stateKey, onToggle) local row = Instance.new("Frame") row.Name = "Toggle_" .. stateKey row.Size = UDim2.new(1, 0, 0, 38) row.BackgroundColor3 = COLOR_BG row.BorderSizePixel = 0 row.Parent = parent local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = row local s = Instance.new("UIStroke") s.Color = COLOR_GREEN s.Thickness = 1 s.Parent = row local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(1, -76, 1, 0) lbl.Position = UDim2.new(0, 10, 0, 0) lbl.BackgroundTransparency = 1 lbl.Text = labelText lbl.TextColor3 = COLOR_TEXT lbl.TextSize = 12 lbl.Font = Enum.Font.GothamSemibold lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.TextTruncate = Enum.TextTruncate.AtEnd lbl.Parent = row local toggleBtn = Instance.new("TextButton") toggleBtn.Size = UDim2.new(0, 56, 0, 24) toggleBtn.Position = UDim2.new(1, -64, 0.5, -12) toggleBtn.BackgroundColor3 = COLOR_PANEL toggleBtn.Text = "OFF" toggleBtn.TextColor3 = COLOR_MUTED toggleBtn.TextSize = 11 toggleBtn.Font = Enum.Font.GothamBold toggleBtn.Parent = row local tc = Instance.new("UICorner") tc.CornerRadius = UDim.new(0, 5) tc.Parent = toggleBtn local ts = Instance.new("UIStroke") ts.Color = COLOR_GREEN ts.Thickness = 1 ts.Parent = toggleBtn local function refreshVisual() local active = State[stateKey] toggleBtn.Text = active and "ON" or "OFF" toggleBtn.TextColor3 = active and COLOR_GREEN or COLOR_MUTED toggleBtn.BackgroundColor3 = active and COLOR_GREEN_DARK or COLOR_PANEL end toggleBtn.MouseButton1Click:Connect(function() State[stateKey] = not State[stateKey] refreshVisual() if onToggle then onToggle(State[stateKey]) end end) refreshVisual() return row end local function createNumberStepper(parent, labelText, initialValue, step, minVal, maxVal, onChanged) local currentVal = initialValue local row = Instance.new("Frame") row.Name = "Stepper_" .. labelText row.Size = UDim2.new(1, 0, 0, 38) row.BackgroundColor3 = COLOR_BG row.BorderSizePixel = 0 row.Parent = parent local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = row local s = Instance.new("UIStroke") s.Color = COLOR_GREEN s.Thickness = 1 s.Parent = row local lbl = Instance.new("TextLabel") lbl.Size = UDim2.new(1, -118, 1, 0) lbl.Position = UDim2.new(0, 10, 0, 0) lbl.BackgroundTransparency = 1 lbl.Text = labelText .. ": " .. tostring(currentVal) lbl.TextColor3 = COLOR_TEXT lbl.TextSize = 12 lbl.Font = Enum.Font.GothamSemibold lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.Parent = row local minusBtn = Instance.new("TextButton") minusBtn.Size = UDim2.new(0, 26, 0, 24) minusBtn.Position = UDim2.new(1, -64, 0.5, -12) minusBtn.BackgroundColor3 = COLOR_PANEL minusBtn.Text = "-" minusBtn.TextColor3 = COLOR_GREEN minusBtn.TextSize = 15 minusBtn.Font = Enum.Font.GothamBold minusBtn.Parent = row local plusBtn = Instance.new("TextButton") plusBtn.Size = UDim2.new(0, 26, 0, 24) plusBtn.Position = UDim2.new(1, -34, 0.5, -12) plusBtn.BackgroundColor3 = COLOR_PANEL plusBtn.Text = "+" plusBtn.TextColor3 = COLOR_GREEN plusBtn.TextSize = 15 plusBtn.Font = Enum.Font.GothamBold plusBtn.Parent = row for _, b in ipairs({ minusBtn, plusBtn }) do local bc = Instance.new("UICorner") bc.CornerRadius = UDim.new(0, 5) bc.Parent = b local bs = Instance.new("UIStroke") bs.Color = COLOR_GREEN bs.Thickness = 1 bs.Parent = b end local function setVal(v) currentVal = math.clamp(v, minVal, maxVal) lbl.Text = labelText .. ": " .. tostring(currentVal) if onChanged then onChanged(currentVal) end end minusBtn.MouseButton1Click:Connect(function() setVal(currentVal - step) end) plusBtn.MouseButton1Click:Connect(function() setVal(currentVal + step) end) return row end -- Nút điều chỉnh chiều cao camera trên màn hình khi bật Fly Air local CamAltitudeFrame = Instance.new("Frame") CamAltitudeFrame.Name = "FlyCamAltitudeControls" CamAltitudeFrame.Size = UDim2.new(0, 120, 0, 44) CamAltitudeFrame.Position = UDim2.new(1, -136, 0.5, -22) CamAltitudeFrame.BackgroundColor3 = COLOR_BG CamAltitudeFrame.Visible = false CamAltitudeFrame.Parent = ScreenGui local altCorner = Instance.new("UICorner") altCorner.CornerRadius = UDim.new(0, 6) altCorner.Parent = CamAltitudeFrame local altStroke = Instance.new("UIStroke") altStroke.Color = COLOR_GREEN altStroke.Thickness = 1.5 altStroke.Parent = CamAltitudeFrame local CamUpBtn = Instance.new("TextButton") CamUpBtn.Size = UDim2.new(0.46, 0, 0.8, 0) CamUpBtn.Position = UDim2.new(0.03, 0, 0.1, 0) CamUpBtn.BackgroundColor3 = COLOR_PANEL CamUpBtn.Text = "Cam +" CamUpBtn.TextColor3 = COLOR_GREEN CamUpBtn.TextSize = 12 CamUpBtn.Font = Enum.Font.GothamBold CamUpBtn.Parent = CamAltitudeFrame local CamDownBtn = Instance.new("TextButton") CamDownBtn.Size = UDim2.new(0.46, 0, 0.8, 0) CamDownBtn.Position = UDim2.new(0.51, 0, 0.1, 0) CamDownBtn.BackgroundColor3 = COLOR_PANEL CamDownBtn.Text = "Cam -" CamDownBtn.TextColor3 = COLOR_GREEN CamDownBtn.TextSize = 12 CamDownBtn.Font = Enum.Font.GothamBold CamDownBtn.Parent = CamAltitudeFrame local camVerticalOffset = 0 local holdingCamUp = false local holdingCamDown = false CamUpBtn.MouseButton1Down:Connect(function() holdingCamUp = true end) CamUpBtn.MouseButton1Up:Connect(function() holdingCamUp = false end) CamUpBtn.MouseLeave:Connect(function() holdingCamUp = false end) CamDownBtn.MouseButton1Down:Connect(function() holdingCamDown = true end) CamDownBtn.MouseButton1Up:Connect(function() holdingCamDown = false end) CamDownBtn.MouseLeave:Connect(function() holdingCamDown = false end) -- ========================================== -- KHỞI TẠO 3 TAB & CÁC CHỨC NĂNG -- ========================================== local pageMain = createTab("Main") local pageEsp = createTab("Esp") local pageOther = createTab("Khác") -- TAB MAIN createToggle(pageMain, "Tele Kill (150m + Auto Đánh)", "TeleKill") createToggle(pageMain, "Aimbot (Ghim Tâm Model 150m)", "Aimbot") createToggle(pageMain, "Aim Magic (Bắn Ghim NPC 150m)", "AimMagic") createToggle(pageMain, "Auto Bắn (150m, Không Khóa Cam)", "AutoFire") -- TAB ESP (Quét phạm vi 150m) createToggle(pageEsp, "Esp Line (150m)", "EspLine") createToggle(pageEsp, "Esp Box (150m)", "EspBox") createToggle(pageEsp, "Esp Name (150m)", "EspName") createToggle(pageEsp, "Esp Distance (150m)", "EspDistance") createToggle(pageEsp, "Esp Hologram (Xuyên Tường 150m)", "EspHologram") -- TAB KHÁC createToggle(pageOther, "No Clip (Xuyên Vật Cản)", "NoClip") createToggle(pageOther, "Fly Air (Nút Tăng/Giảm Cam)", "FlyAir", function(enabled) CamAltitudeFrame.Visible = enabled if not enabled then camVerticalOffset = 0 end end) createNumberStepper(pageOther, "Fly Speed", Config.FlySpeed, 10, 10, 250, function(val) Config.FlySpeed = val end) createNumberStepper(pageOther, "Speed", Config.WalkSpeed, 4, 8, 200, function(val) Config.WalkSpeed = val end) createToggle(pageOther, "Speed (Tăng Tốc Độ)", "Speed", function(enabled) local hum = getHumanoid() if hum then hum.WalkSpeed = enabled and Config.WalkSpeed or DefaultStats.WalkSpeed end end) createToggle(pageOther, "Jumping Air (Nhảy Trên Không)", "JumpAir") -- Ghost: Ẩn / tách nhân vật khỏi va chạm & tầm nhìn của NPC/Mob trong khi giữ góc nhìn local ghostBackup = {} local function applyGhost(enabled) local char = getCharacter() local root = getRootPart(char) local hum = getHumanoid(char) if not char then return end if enabled then ghostBackup = {} for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then ghostBackup[part] = { Transparency = part.Transparency, CanCollide = part.CanCollide, CanQuery = part.CanQuery, CanTouch = part.CanTouch, } part.Transparency = 1 part.CanCollide = false part.CanQuery = false part.CanTouch = false elseif part:IsA("Decal") then ghostBackup[part] = { Transparency = part.Transparency } part.Transparency = 1 end end if hum then hum.PlatformStand = false end if root then root.Anchored = false end else for obj, props in pairs(ghostBackup) do if obj and obj.Parent then if obj:IsA("BasePart") then obj.Transparency = props.Transparency obj.CanCollide = props.CanCollide obj.CanQuery = props.CanQuery obj.CanTouch = props.CanTouch elseif obj:IsA("Decal") then obj.Transparency = props.Transparency end end end ghostBackup = {} end end createToggle(pageOther, "Ghost (Ẩn Khỏi Mod, Giữ Tầm Nhìn)", "Ghost", applyGhost) -- Thu nhỏ & Thoát menu local minimized = false MinimizeBtn.MouseButton1Click:Connect(function() minimized = not minimized BodyFrame.Visible = not minimized MinimizeBtn.Text = minimized and "+" or "-" MainFrame.Size = minimized and UDim2.new(0, 340, 0, 38) or UDim2.new(0, 340, 0, 390) end) CloseBtn.MouseButton1Click:Connect(function() State.TeleKill = false State.Aimbot = false State.AimMagic = false State.AutoFire = false State.EspLine = false State.EspBox = false State.EspName = false State.EspDistance = false State.EspHologram = false State.NoClip = false State.FlyAir = false State.Speed = false State.JumpAir = false if State.Ghost then State.Ghost = false applyGhost(false) end ScreenGui:Destroy() end) switchTab("Main") -- ========================================== -- HỆ THỐNG ESP (DRAWING API + HIGHLIGHT HOLOGRAM) -- ========================================== local hasDrawing = pcall(function() return Drawing.new("Line") ~= nil end) local espDrawings = {} local espHighlights = {} local function getOrCreateLine(key) if not hasDrawing then return nil end if not espDrawings[key] then local line = Drawing.new("Line") line.Visible = false line.Color = COLOR_GREEN line.Thickness = 1.5 line.Transparency = 1 espDrawings[key] = line end return espDrawings[key] end local function clearEspVisuals() if hasDrawing then for _, item in pairs(espDrawings) do if typeof(item) == "table" then for _, d in ipairs(item) do pcall(function() d.Visible = false end) end else pcall(function() item.Visible = false end) end end end for model, hl in pairs(espHighlights) do if hl then hl.Enabled = false if not model or not model.Parent then hl:Destroy() espHighlights[model] = nil end end end end local function setHologram(model, enabled) if not enabled then local hl = espHighlights[model] if hl then hl.Enabled = false end return end local hl = espHighlights[model] if not hl then hl = Instance.new("Highlight") hl.Name = "HPTeam_Hologram" hl.Adornee = model hl.FillColor = COLOR_GREEN hl.OutlineColor = COLOR_GREEN hl.FillTransparency = 0.45 hl.OutlineTransparency = 0 hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.Parent = ScreenGui espHighlights[model] = hl end hl.Enabled = true end local function updateEsp() local anyEsp = State.EspLine or State.EspBox or State.EspName or State.EspDistance or State.EspHologram if not anyEsp then clearEspVisuals() return end local targets = getTargetsInRange(Config.MaxRange) local activeModels = {} local topCenter = Vector2.new(Camera.ViewportSize.X * 0.5, 0) for idx, t in ipairs(targets) do activeModels[t.Model] = true setHologram(t.Model, State.EspHologram) local cf, size = t.Model:GetBoundingBox() local rootPos, onScreen = Camera:WorldToViewportPoint(cf.Position) local lineObj = getOrCreateLine("line_" .. idx) if lineObj then if State.EspLine and onScreen and rootPos.Z > 0 then lineObj.From = topCenter lineObj.To = Vector2.new(rootPos.X, rootPos.Y) lineObj.Color = COLOR_GREEN lineObj.Visible = true else lineObj.Visible = false end end if hasDrawing and (State.EspBox or State.EspName or State.EspDistance) then if not espDrawings["box_" .. idx] then local boxLines = {} for i = 1, 4 do local l = Drawing.new("Line") l.Color = COLOR_GREEN l.Thickness = 1.5 l.Visible = false table.insert(boxLines, l) end local txt = Drawing.new("Text") txt.Color = COLOR_GREEN txt.Size = 13 txt.Center = true txt.Outline = true txt.Visible = false espDrawings["box_" .. idx] = { boxLines, txt } end local pack = espDrawings["box_" .. idx] local boxLines = pack[1] local txt = pack[2] if onScreen and rootPos.Z > 0 then local halfY = (size.Y * 0.5) local topWorld = cf.Position + Vector3.new(0, halfY, 0) local botWorld = cf.Position - Vector3.new(0, halfY, 0) local topScreen = Camera:WorldToViewportPoint(topWorld) local botScreen = Camera:WorldToViewportPoint(botWorld) local h = math.max(12, math.abs(botScreen.Y - topScreen.Y)) local w = h * 0.65 local cx = rootPos.X local cy = (topScreen.Y + botScreen.Y) * 0.5 local tl = Vector2.new(cx - w * 0.5, cy - h * 0.5) local tr = Vector2.new(cx + w * 0.5, cy - h * 0.5) local br = Vector2.new(cx + w * 0.5, cy + h * 0.5) local bl = Vector2.new(cx - w * 0.5, cy + h * 0.5) if State.EspBox then boxLines[1].From, boxLines[1].To, boxLines[1].Visible = tl, tr, true boxLines[2].From, boxLines[2].To, boxLines[2].Visible = tr, br, true boxLines[3].From, boxLines[3].To, boxLines[3].Visible = br, bl, true boxLines[4].From, boxLines[4].To, boxLines[4].Visible = bl, tl, true else for _, l in ipairs(boxLines) do l.Visible = false end end local infoParts = {} if State.EspName then table.insert(infoParts, t.Model.Name) end if State.EspDistance then table.insert(infoParts, string.format("%.0fm", t.Distance)) end if #infoParts > 0 then txt.Text = table.concat(infoParts, " | ") txt.Position = Vector2.new(cx, tl.Y - 16) txt.Visible = true else txt.Visible = false end else for _, l in ipairs(boxLines) do l.Visible = false end txt.Visible = false end end end for model, hl in pairs(espHighlights) do if not activeModels[model] then hl.Enabled = false end end end -- ========================================== -- NHẢY TRÊN KHÔNG (JUMPING AIR) & AIM MAGIC KHI BẮN -- ========================================== UserInputService.JumpRequest:Connect(function() if State.JumpAir then local hum = getHumanoid() if hum and hum:GetState() ~= Enum.HumanoidStateType.Dead then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if State.AimMagic and (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then local target = getClosestTargetToScreenCenter(Config.MaxRange) if target and target.AimPart then -- Hướng camera / điểm ngắm tức thời về mục tiêu NPC trong 150m khi nhấn bắn local camPos = Camera.CFrame.Position Camera.CFrame = CFrame.lookAt(camPos, target.AimPart.Position) triggerAttack(target) end end end) -- ========================================== -- VÒNG LẶP THỰC THI CHÍNH -- ========================================== local lastAutoFireTime = 0 RunService.RenderStepped:Connect(function(dt) local char = getCharacter() local root = getRootPart(char) local hum = getHumanoid(char) -- Speed if hum and State.Speed then hum.WalkSpeed = Config.WalkSpeed end -- No Clip if char and State.NoClip then for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end -- Fly Air & Nút tăng/giảm chiều cao camera if State.FlyAir then if holdingCamUp then camVerticalOffset += 45 * dt elseif holdingCamDown then camVerticalOffset -= 45 * dt end if root then local moveVec = Vector3.zero if hum then moveVec = hum.MoveDirection end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then moveVec += Vector3.new(0, 1, 0) elseif UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then moveVec -= Vector3.new(0, 1, 0) end root.AssemblyLinearVelocity = Vector3.zero local nextPos = root.Position + (moveVec.Magnitude > 0 and moveVec.Unit * Config.FlySpeed * dt or Vector3.zero) root.CFrame = CFrame.new(nextPos) * root.CFrame.Rotation if math.abs(camVerticalOffset) > 0.01 then Camera.CFrame = Camera.CFrame + Vector3.new(0, camVerticalOffset * dt, 0) end end end -- Tele Kill: Lọc mục tiêu trong 150m, tự dịch chuyển tới & tự đánh if State.TeleKill and root then local targets = getTargetsInRange(Config.MaxRange) local target = targets[1] if target then local dest = target.Root.CFrame * CFrame.new(Config.TeleKillOffset) root.CFrame = CFrame.lookAt(dest.Position, target.Root.Position) triggerAttack(target) end end -- Aimbot: Ghim tâm vào mục tiêu Model trong 150m if State.Aimbot then local target = getClosestTargetToScreenCenter(Config.MaxRange) if target and target.AimPart then local camPos = Camera.CFrame.Position local desiredCF = CFrame.lookAt(camPos, target.AimPart.Position) Camera.CFrame = Camera.CFrame:Lerp(desiredCF, Config.AimbotSmoothness) end end -- Auto Bắn: Tự động bắn mục tiêu trong bán kính 150m, không khóa màn hình bám mục tiêu if State.AutoFire and root then local now = os.clock() if now - lastAutoFireTime >= Config.AutoFireInterval then local targets = getTargetsInRange(Config.MaxRange) if #targets > 0 then lastAutoFireTime = now triggerAttack(targets[1]) end end end -- Cập nhật ESP updateEsp() end)