--[[ Hp Team Pro V1 | LocalScript Vi tri dat: StarterPlayer > StarterPlayerScripts (hoac StarterGui) Muc dich: phat trien / go loi / kiem thu tinh nang cho game Roblox do chinh ban xay dung. ]] --================================================================== -- 0. SERVICES --================================================================== local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Chi cho phep 1 ban chay: neu da co ban cu thi dong ban cu truoc if shared.HpTeamProV1_Close then pcall(shared.HpTeamProV1_Close) end --================================================================== -- 1. CONFIG (CAC THAM SO CAN CAU HINH THEO GAME THUC TE) --================================================================== local Config = { Range = 150, -- Pham vi quet (studs) AllowPlayers = false, -- false: chi quet NPC/Mob, bo qua nguoi choi khac TargetFolder = nil, -- Vi du: Workspace:WaitForChild("Mobs"). nil = quet ca Workspace AimPartNames = { "Head", "HumanoidRootPart" }, -- Thu tu uu tien phan de ngam -- Tan cong AttackInterval = 0.12, -- Giay giua 2 lan danh / ban TeleOffset = CFrame.new(0, 0, 3.5), -- Vi tri dich chuyen so voi muc tieu (sau luong) -- Remote gay sat thuong (Tele Kill). Dat Instance RemoteEvent/RemoteFunction cua game, vd: -- game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Damage") DamageRemote = nil, BuildDamageArgs = function(target) -- target = {Model, Humanoid, Root, Part, Distance} return { target.Humanoid } end, -- Remote ban dan (Aim Magic / Auto Ban). Neu nil thi chi dung Tool:Activate() ShootRemote = nil, BuildShootArgs = function(target) return { target.Part.Position, target.Part } end, -- Esp Workspace WorkspaceFolder = nil, -- nil = Workspace. Co the tro vao thu muc map MaxWorkspaceHighlights = 25, -- Roblox gioi han ~31 Highlight cung luc WorkspaceMaxPartSize = 300, -- Bo qua vat the qua lon (nen dat, baseplate...) WorkspaceScanDepth = 3, -- Khac DefaultFlySpeed = 60, DefaultWalkSpeed = 32, } local GREEN = Color3.fromHex("00FF66") local BG_DARK = Color3.fromHex("0C0E0C") local BG_PANEL = Color3.fromHex("141814") local State = { FlySpeed = Config.DefaultFlySpeed, WalkSpeed = Config.DefaultWalkSpeed, } --================================================================== -- 2. JANITOR (QUAN LY DON DEP: Connect / Instance / function) --================================================================== local function newJanitor() local items = {} local J = {} function J.Add(obj) items[#items + 1] = obj return obj end function J.Clean() for i = #items, 1, -1 do local o = items[i] items[i] = nil local t = typeof(o) if t == "RBXScriptConnection" then o:Disconnect() elseif t == "Instance" then o:Destroy() elseif t == "function" then pcall(o) end end end return J end local GuiJan = newJanitor() local RegJan = newJanitor() local AllFeatures = {} --================================================================== -- 3. HELPERS: NHAN VAT & QUET MUC TIEU --================================================================== local function getMyChar() return LocalPlayer.Character end local function getMyRoot() local c = getMyChar() return c and c:FindFirstChild("HumanoidRootPart") end local function getMyHum() local c = getMyChar() return c and c:FindFirstChildOfClass("Humanoid") end local function getRootOf(model) return model:FindFirstChild("HumanoidRootPart") or model.PrimaryPart or model:FindFirstChildWhichIsA("BasePart") end local function getAimPart(model, fallback) for _, name in ipairs(Config.AimPartNames) do local p = model:FindFirstChild(name) if p and p:IsA("BasePart") then return p end end return fallback end -- Registry: tap hop Humanoid dang ton tai (cap nhat bang DescendantAdded / Removing) local Registry = {} do local scanRoot = Config.TargetFolder or Workspace for _, d in ipairs(scanRoot:GetDescendants()) do if d:IsA("Humanoid") then Registry[d] = true end end RegJan.Add(scanRoot.DescendantAdded:Connect(function(d) if d:IsA("Humanoid") then Registry[d] = true end end)) RegJan.Add(scanRoot.DescendantRemoving:Connect(function(d) if d:IsA("Humanoid") then Registry[d] = nil end end)) end -- Danh sach muc tieu hop le trong pham vi, sap xep gan -> xa (cache 0.05s) local targetCache, targetCacheTime = {}, 0 local function getTargets() local now = os.clock() if now - targetCacheTime < 0.05 then return targetCache end targetCacheTime = now local list = {} local myRoot = getMyRoot() if myRoot then local origin = myRoot.Position local myChar = getMyChar() for hum in pairs(Registry) do local model = hum.Parent if model and model:IsA("Model") and model ~= myChar and hum.Health > 0 and (Config.AllowPlayers or not Players:GetPlayerFromCharacter(model)) then local root = getRootOf(model) if root then local d = (root.Position - origin).Magnitude if d <= Config.Range then list[#list + 1] = { Model = model, Humanoid = hum, Root = root, Part = getAimPart(model, root), Distance = d, } end end end end table.sort(list, function(a, b) return a.Distance < b.Distance end) end targetCache = list return list end local function getNearestTarget() return getTargets()[1] end --================================================================== -- 4. HELPERS: TAN CONG / BAN --================================================================== local function fireRemote(remote, args) if not remote or not args then return end local n = args.n or #args if remote:IsA("RemoteEvent") then pcall(function() remote:FireServer(table.unpack(args, 1, n)) end) elseif remote:IsA("RemoteFunction") then task.spawn(function() pcall(function() remote:InvokeServer(table.unpack(args, 1, n)) end) end) end end local function activateTool() local char = getMyChar() local tool = char and char:FindFirstChildOfClass("Tool") if tool then pcall(function() tool:Activate() end) end return tool end local function sendDamage(target) if Config.DamageRemote then fireRemote(Config.DamageRemote, Config.BuildDamageArgs(target)) end end local function sendShoot(target) if Config.ShootRemote then fireRemote(Config.ShootRemote, Config.BuildShootArgs(target)) end end --================================================================== -- 5. FEATURE FACTORY -- enableFn(janitor) duoc goi khi bat; khi tat: janitor.Clean() roi disableFn() --================================================================== local function makeFeature(enableFn, disableFn) local f = { Enabled = false, Jan = newJanitor() } function f.Set(v) if v == f.Enabled then return end f.Enabled = v if v then local ok, err = pcall(enableFn, f.Jan) if not ok then warn("[HpTeamPro] Loi bat chuc nang: " .. tostring(err)) f.Jan.Clean() f.Enabled = false end else f.Jan.Clean() if disableFn then local ok, err = pcall(disableFn) if not ok then warn("[HpTeamPro] Loi tat chuc nang: " .. tostring(err)) end end end end AllFeatures[#AllFeatures + 1] = f return f end local F = {} --================================================================== -- 6. TAB MAIN --================================================================== -- 6.1 Tele Kill F.TeleKill = makeFeature(function(jan) local last = 0 jan.Add(RunService.Heartbeat:Connect(function() local root = getMyRoot() if not root then return end local t = getNearestTarget() if not t then return end local pos = (t.Root.CFrame * Config.TeleOffset).Position local look = Vector3.new(t.Root.Position.X, pos.Y, t.Root.Position.Z) if (look - pos).Magnitude > 0.01 then root.CFrame = CFrame.lookAt(pos, look) else root.CFrame = CFrame.new(pos) end root.AssemblyLinearVelocity = Vector3.zero local now = os.clock() if now - last >= Config.AttackInterval then last = now activateTool() sendDamage(t) end end)) end) -- 6.2 Aimbot (khoa camera vao muc tieu gan nhat) F.Aimbot = makeFeature(function(jan) jan.Add(RunService.RenderStepped:Connect(function() local cam = Workspace.CurrentCamera if not cam then return end local t = getNearestTarget() if t then cam.CFrame = CFrame.lookAt(cam.CFrame.Position, t.Part.Position) end end)) end) -- 6.3 Aim Magic (khi nguoi choi ban, dan ghim vao muc tieu; KHONG khoa man hinh) F.AimMagic = makeFeature(function(jan) local lastShot = 0 local function onShoot() local now = os.clock() if now - lastShot < 0.05 then return -- chong goi trung khi Tool.Activated va InputBegan cung kich hoat end lastShot = now local t = getNearestTarget() if t then sendShoot(t) sendDamage(t) end end local function hookTool(tool) if tool:IsA("Tool") then jan.Add(tool.Activated:Connect(onShoot)) end end local function hookChar(char) for _, c in ipairs(char:GetChildren()) do hookTool(c) end jan.Add(char.ChildAdded:Connect(hookTool)) end local char = getMyChar() if char then hookChar(char) end jan.Add(LocalPlayer.CharacterAdded:Connect(hookChar)) jan.Add(UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then onShoot() end end)) end) -- 6.4 Auto Ban (tu dong ban muc tieu trong 150, khong khoa man hinh) F.AutoShoot = makeFeature(function(jan) local last = 0 jan.Add(RunService.Heartbeat:Connect(function() local now = os.clock() if now - last < Config.AttackInterval then return end local t = getNearestTarget() if not t then return end last = now activateTool() sendShoot(t) sendDamage(t) end)) end) --================================================================== -- 7. TAB ESP --================================================================== local Esp = { Flags = { Line = false, Box = false, Name = false, Distance = false, Hologram = false }, Running = false, Jan = newJanitor(), } local function destroyKey(o, key) if o[key] then o[key]:Destroy() o[key] = nil end end local function destroyEspObject(o) for _, k in ipairs({ "Line", "Box", "Billboard", "Highlight" }) do destroyKey(o, k) end o.NameLabel = nil o.DistLabel = nil end local function makeLine(parent) local l = Instance.new("Frame") l.AnchorPoint = Vector2.new(0.5, 0.5) l.BorderSizePixel = 0 l.BackgroundColor3 = GREEN l.Visible = false l.Parent = parent return l end local function makeBox(parent) local b = Instance.new("BoxHandleAdornment") b.AlwaysOnTop = true b.ZIndex = 1 b.Transparency = 0.7 b.Color3 = GREEN b.Parent = parent return b end local function makeBillboard(parent, o) local bb = Instance.new("BillboardGui") bb.AlwaysOnTop = true bb.Size = UDim2.fromOffset(160, 36) bb.LightInfluence = 0 bb.Parent = parent local function label(yScale) local l = Instance.new("TextLabel") l.BackgroundTransparency = 1 l.Position = UDim2.new(0, 0, yScale, 0) l.Size = UDim2.new(1, 0, 0.5, 0) l.Font = Enum.Font.GothamBold l.TextSize = 14 l.TextColor3 = GREEN l.TextStrokeTransparency = 0.3 l.Parent = bb return l end o.NameLabel = label(0) o.DistLabel = label(0.5) return bb end local function startEsp() if Esp.Running then return end Esp.Running = true local overlay = Instance.new("ScreenGui") overlay.Name = "HpTeamProV1_Esp" overlay.ResetOnSpawn = false overlay.IgnoreGuiInset = true overlay.DisplayOrder = 50 overlay.Parent = PlayerGui Esp.Jan.Add(overlay) local objects = {} Esp.Jan.Add(function() for _, o in pairs(objects) do destroyEspObject(o) end table.clear(objects) end) Esp.Jan.Add(RunService.RenderStepped:Connect(function() local cam = Workspace.CurrentCamera if not cam then return end local flags = Esp.Flags local vp = cam.ViewportSize local seen = {} for _, t in ipairs(getTargets()) do local model, root = t.Model, t.Root seen[model] = true local o = objects[model] if not o then o = {} objects[model] = o end -- Esp Line: tu canh tren giua man hinh toi muc tieu if flags.Line then if not o.Line then o.Line = makeLine(overlay) end local p, onScreen = cam:WorldToViewportPoint(root.Position) if onScreen and p.Z > 0 then local a = Vector2.new(vp.X / 2, 0) local b = Vector2.new(p.X, p.Y) local d = b - a o.Line.Position = UDim2.fromOffset((a.X + b.X) / 2, (a.Y + b.Y) / 2) o.Line.Size = UDim2.fromOffset(d.Magnitude, 1.5) o.Line.Rotation = math.deg(math.atan2(d.Y, d.X)) o.Line.Visible = true else o.Line.Visible = false end else destroyKey(o, "Line") end -- Esp Box 3D if flags.Box then if not o.Box then o.Box = makeBox(overlay) end local cf, size = model:GetBoundingBox() o.Box.Adornee = root o.Box.CFrame = root.CFrame:ToObjectSpace(cf) o.Box.Size = size else destroyKey(o, "Box") end -- Esp Name + Esp Distance if flags.Name or flags.Distance then if not o.Billboard then o.Billboard = makeBillboard(overlay, o) end o.Billboard.Adornee = root o.Billboard.StudsOffsetWorldSpace = Vector3.new(0, model:GetExtentsSize().Y / 2 + 1.5, 0) o.NameLabel.Visible = flags.Name o.DistLabel.Visible = flags.Distance o.NameLabel.Text = model.Name o.DistLabel.Text = string.format("%d m", math.floor(t.Distance + 0.5)) else destroyKey(o, "Billboard") o.NameLabel = nil o.DistLabel = nil end -- Esp Hologram (xuyen tuong) if flags.Hologram then if not o.Highlight then local h = Instance.new("Highlight") h.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop h.FillColor = GREEN h.OutlineColor = GREEN h.FillTransparency = 0.6 h.OutlineTransparency = 0 h.Adornee = model h.Parent = overlay o.Highlight = h end else destroyKey(o, "Highlight") end end -- Don dep muc tieu da roi pham vi / chet / bi xoa for model, o in pairs(objects) do if not seen[model] then destroyEspObject(o) objects[model] = nil end end end)) end local function refreshEsp() local any = false for _, v in pairs(Esp.Flags) do if v then any = true break end end if any then startEsp() elseif Esp.Running then Esp.Jan.Clean() Esp.Running = false end end local function makeEspFlag(flag) local f = { Enabled = false } function f.Set(v) f.Enabled = v Esp.Flags[flag] = v refreshEsp() end AllFeatures[#AllFeatures + 1] = f return f end F.EspLine = makeEspFlag("Line") F.EspBox = makeEspFlag("Box") F.EspName = makeEspFlag("Name") F.EspDistance = makeEspFlag("Distance") F.EspHologram = makeEspFlag("Hologram") -- Esp Workspace: Hologram xuyen tuong cho vat the/model cua map trong pham vi F.EspWorkspace = makeFeature(function(jan) local holder = Instance.new("Folder") holder.Name = "HpTeamProV1_WsHolo" holder.Parent = PlayerGui jan.Add(holder) local active = {} -- [instance] = Highlight jan.Add(function() for _, h in pairs(active) do h:Destroy() end table.clear(active) end) local function collect(parent, depth, out) for _, c in ipairs(parent:GetChildren()) do if c:IsA("Model") then if c ~= getMyChar() and not Players:GetPlayerFromCharacter(c) and not c:FindFirstChildOfClass("Humanoid") then local hasSub = false for _, cc in ipairs(c:GetChildren()) do if cc:IsA("Model") or cc:IsA("Folder") then hasSub = true break end end if depth > 0 and hasSub then collect(c, depth - 1, out) end if c:FindFirstChildWhichIsA("BasePart") then out[#out + 1] = c end end elseif c:IsA("Folder") then if depth > 0 then collect(c, depth - 1, out) end elseif c:IsA("BasePart") and not c:IsA("Terrain") then out[#out + 1] = c end end end local acc = 0 jan.Add(RunService.Heartbeat:Connect(function(dt) acc += dt if acc < 0.5 then return end acc = 0 local root = getMyRoot() local wanted = {} if root then local candidates = {} collect(Config.WorkspaceFolder or Workspace, Config.WorkspaceScanDepth, candidates) local origin = root.Position local scored = {} for _, inst in ipairs(candidates) do local pos, size if inst:IsA("Model") then pos = inst:GetPivot().Position size = inst:GetExtentsSize() else pos = inst.Position size = inst.Size end local d = (pos - origin).Magnitude if d <= Config.Range and size.Magnitude <= Config.WorkspaceMaxPartSize then scored[#scored + 1] = { Inst = inst, Dist = d } end end table.sort(scored, function(a, b) return a.Dist < b.Dist end) for i = 1, math.min(#scored, Config.MaxWorkspaceHighlights) do wanted[scored[i].Inst] = true end end for inst, h in pairs(active) do if not wanted[inst] or not inst.Parent then h:Destroy() active[inst] = nil end end for inst in pairs(wanted) do if not active[inst] then local h = Instance.new("Highlight") h.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop h.FillColor = GREEN h.OutlineColor = GREEN h.FillTransparency = 0.8 h.OutlineTransparency = 0.2 h.Adornee = inst h.Parent = holder active[inst] = h end end end)) end) --================================================================== -- 8. TAB KHAC --================================================================== -- 8.1 No Clip do local changed = setmetatable({}, { __mode = "k" }) F.NoClip = makeFeature(function(jan) jan.Add(RunService.Stepped:Connect(function() local char = getMyChar() if not char then return end for _, p in ipairs(char:GetDescendants()) do if p:IsA("BasePart") and p.CanCollide then changed[p] = true p.CanCollide = false end end end)) end, function() for p in pairs(changed) do if p.Parent then p.CanCollide = true end end table.clear(changed) end) end -- 8.2 Fly Air (giu nguyen vi tri khi khong bam; nut len/xuong tren man hinh; phim E/Q) F.Fly = makeFeature(function(jan) local root = getMyRoot() if not root then error("Chua co nhan vat") end local bv = Instance.new("BodyVelocity") bv.MaxForce = Vector3.new(1e9, 1e9, 1e9) bv.Velocity = Vector3.zero bv.Parent = root jan.Add(bv) local btnUp, btnDown, keyUp, keyDown = false, false, false, false local flyGui = Instance.new("ScreenGui") flyGui.Name = "HpTeamProV1_Fly" flyGui.ResetOnSpawn = false flyGui.DisplayOrder = 101 flyGui.Parent = PlayerGui jan.Add(flyGui) local function makeBtn(text, y, setter) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(56, 48) b.Position = UDim2.new(1, -72, 0.5, y) b.BackgroundColor3 = BG_DARK b.Text = text b.Font = Enum.Font.GothamBold b.TextSize = 22 b.TextColor3 = GREEN b.AutoButtonColor = true b.Parent = flyGui local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 8) c.Parent = b local s = Instance.new("UIStroke") s.Color = GREEN s.Thickness = 1.5 s.Parent = b jan.Add(b.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then setter(true) end end)) jan.Add(b.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then setter(false) end end)) end makeBtn("▲", -56, function(v) btnUp = v end) makeBtn("▼", 4, function(v) btnDown = v end) jan.Add(UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.E then keyUp = true elseif input.KeyCode == Enum.KeyCode.Q then keyDown = true end end)) jan.Add(UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.E then keyUp = false elseif input.KeyCode == Enum.KeyCode.Q then keyDown = false end end)) jan.Add(RunService.Heartbeat:Connect(function() local r = getMyRoot() local hum = getMyHum() if not r or not hum then return end if bv.Parent ~= r then bv.Parent = r end local vertical = 0 if btnUp or keyUp then vertical += 1 end if btnDown or keyDown then vertical -= 1 end -- Khong bam gi => van toc = 0 => dung yen tren khong, khong tu roi bv.Velocity = hum.MoveDirection * State.FlySpeed + Vector3.new(0, vertical * State.FlySpeed, 0) end)) end, function() local r = getMyRoot() if r then r.AssemblyLinearVelocity = Vector3.zero end end) -- 8.3 Speed (WalkSpeed) - gia tri chinh bang nut +/- tren menu do local original F.Speed = makeFeature(function(jan) local hum = getMyHum() original = hum and hum.WalkSpeed or 16 jan.Add(RunService.Heartbeat:Connect(function() local h = getMyHum() if h then h.WalkSpeed = State.WalkSpeed end end)) end, function() local h = getMyHum() if h then h.WalkSpeed = original or 16 end end) end -- 8.4 Jumping Air F.JumpAir = makeFeature(function(jan) jan.Add(UserInputService.JumpRequest:Connect(function() local h = getMyHum() if h then h:ChangeState(Enum.HumanoidStateType.Jumping) end end)) end) -- 8.5 Night Vision (xoa bong toi + suong mu) do local saved local PROPS = { "Brightness", "ClockTime", "Ambient", "OutdoorAmbient", "GlobalShadows", "FogStart", "FogEnd", "ExposureCompensation", } local function strip(inst) if not saved then return end if inst:IsA("Atmosphere") then if not saved.Atmo[inst] then saved.Atmo[inst] = { inst.Density, inst.Haze, inst.Glare } end inst.Density = 0 inst.Haze = 0 inst.Glare = 0 elseif inst:IsA("PostEffect") then if saved.Post[inst] == nil then saved.Post[inst] = inst.Enabled end inst.Enabled = false end end local function applyLight() Lighting.Brightness = 3 Lighting.ClockTime = 14 Lighting.Ambient = Color3.fromRGB(200, 200, 200) Lighting.OutdoorAmbient = Color3.fromRGB(200, 200, 200) Lighting.GlobalShadows = false Lighting.FogStart = 1e6 Lighting.FogEnd = 1e6 Lighting.ExposureCompensation = 0 end F.NightVision = makeFeature(function(jan) saved = { Props = {}, Atmo = setmetatable({}, { __mode = "k" }), Post = setmetatable({}, { __mode = "k" }) } for _, p in ipairs(PROPS) do saved.Props[p] = Lighting[p] end for _, d in ipairs(Lighting:GetDescendants()) do strip(d) end jan.Add(Lighting.DescendantAdded:Connect(strip)) local function hookCam(cam) if cam then for _, d in ipairs(cam:GetDescendants()) do strip(d) end jan.Add(cam.DescendantAdded:Connect(strip)) end end hookCam(Workspace.CurrentCamera) local acc = 0 jan.Add(RunService.Heartbeat:Connect(function(dt) acc += dt if acc >= 0.25 then acc = 0 applyLight() end end)) applyLight() end, function() if not saved then return end for p, v in pairs(saved.Props) do pcall(function() Lighting[p] = v end) end for a, v in pairs(saved.Atmo) do if a.Parent then a.Density, a.Haze, a.Glare = v[1], v[2], v[3] end end for e, v in pairs(saved.Post) do if e.Parent then e.Enabled = v end end saved = nil end) end -- 8.6 Fix Lag (giam do hoa, xoa hieu ung) do local saved local function optimize(inst) if not saved then return end if inst:IsA("Terrain") then return end if inst:IsA("BasePart") then if not saved.Parts[inst] then saved.Parts[inst] = { inst.Material, inst.CastShadow } end inst.Material = Enum.Material.Plastic inst.CastShadow = false elseif inst:IsA("ParticleEmitter") or inst:IsA("Trail") or inst:IsA("Beam") or inst:IsA("Smoke") or inst:IsA("Fire") or inst:IsA("Sparkles") then if saved.Fx[inst] == nil then saved.Fx[inst] = inst.Enabled end inst.Enabled = false elseif inst:IsA("PostEffect") then if saved.Fx[inst] == nil then saved.Fx[inst] = inst.Enabled end inst.Enabled = false end end F.FixLag = makeFeature(function(jan) saved = { Parts = setmetatable({}, { __mode = "k" }), Fx = setmetatable({}, { __mode = "k" }), Shadows = Lighting.GlobalShadows, } local alive = true jan.Add(function() alive = false end) pcall(function() saved.Quality = settings().Rendering.QualityLevel settings().Rendering.QualityLevel = Enum.QualityLevel.Level01 end) pcall(function() saved.Deco = Workspace.Terrain.Decoration Workspace.Terrain.Decoration = false end) Lighting.GlobalShadows = false jan.Add(Workspace.DescendantAdded:Connect(optimize)) jan.Add(Lighting.DescendantAdded:Connect(optimize)) task.spawn(function() local n = 0 for _, d in ipairs(Workspace:GetDescendants()) do if not alive then return end optimize(d) n += 1 if n % 400 == 0 then task.wait() end end for _, d in ipairs(Lighting:GetDescendants()) do if not alive then return end optimize(d) end end) end, function() if not saved then return end for p, v in pairs(saved.Parts) do if p.Parent then p.Material = v[1] p.CastShadow = v[2] end end for e, v in pairs(saved.Fx) do if e.Parent then e.Enabled = v end end Lighting.GlobalShadows = saved.Shadows if saved.Quality then pcall(function() settings().Rendering.QualityLevel = saved.Quality end) end if saved.Deco ~= nil then pcall(function() Workspace.Terrain.Decoration = saved.Deco end) end saved = nil end) end --================================================================== -- 9. GIAO DIEN: HP TEAM PRO V1 (ngang 350 x dai 200) --================================================================== local Cleanup -- khai bao truoc, gan o muc 10 local function addCorner(inst, r) local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, r) c.Parent = inst end local function addStroke(inst, color, thickness) local s = Instance.new("UIStroke") s.Color = color s.Thickness = thickness s.ApplyStrokeMode = Enum.ApplyStrokeMode.Border s.Parent = inst return s end local Gui = Instance.new("ScreenGui") Gui.Name = "HpTeamProV1" Gui.ResetOnSpawn = false Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Gui.DisplayOrder = 100 Gui.Parent = PlayerGui GuiJan.Add(Gui) local MENU_W, MENU_H, TITLE_H = 350, 200, 28 local Main = Instance.new("Frame") Main.Name = "Main" Main.Size = UDim2.fromOffset(MENU_W, MENU_H) Main.Position = UDim2.new(0.5, -MENU_W / 2, 0.5, -MENU_H / 2) Main.BackgroundColor3 = BG_DARK Main.BorderSizePixel = 0 Main.ClipsDescendants = true Main.Parent = Gui addCorner(Main, 6) addStroke(Main, GREEN, 1.5) -- Thanh tieu de local TitleBar = Instance.new("Frame") TitleBar.Size = UDim2.new(1, 0, 0, TITLE_H) TitleBar.BackgroundColor3 = BG_PANEL TitleBar.BorderSizePixel = 0 TitleBar.Parent = Main local Title = Instance.new("TextLabel") Title.BackgroundTransparency = 1 Title.Position = UDim2.fromOffset(10, 0) Title.Size = UDim2.new(1, -70, 1, 0) Title.Font = Enum.Font.GothamBold Title.TextSize = 14 Title.TextXAlignment = Enum.TextXAlignment.Left Title.TextColor3 = GREEN Title.Text = "Hp Team Pro V1" Title.Parent = TitleBar local function makeTitleButton(text, xOffset) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(24, 20) b.Position = UDim2.new(1, xOffset, 0, 4) b.BackgroundColor3 = BG_DARK b.Text = text b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = GREEN b.AutoButtonColor = true b.Parent = TitleBar addCorner(b, 4) addStroke(b, GREEN, 1) return b end local MinBtn = makeTitleButton("-", -56) local CloseBtn = makeTitleButton("X", -28) -- Thanh tab local TabBar = Instance.new("Frame") TabBar.BackgroundTransparency = 1 TabBar.Position = UDim2.fromOffset(6, TITLE_H + 3) TabBar.Size = UDim2.new(1, -12, 0, 22) TabBar.Parent = Main do local l = Instance.new("UIListLayout") l.FillDirection = Enum.FillDirection.Horizontal l.Padding = UDim.new(0, 4) l.Parent = TabBar end -- Vung noi dung local Body = Instance.new("Frame") Body.BackgroundTransparency = 1 Body.Position = UDim2.fromOffset(6, TITLE_H + 28) Body.Size = UDim2.new(1, -12, 1, -(TITLE_H + 34)) Body.Parent = Main local Pages, TabButtons = {}, {} local function makePage() local sf = Instance.new("ScrollingFrame") sf.Size = UDim2.fromScale(1, 1) sf.BackgroundTransparency = 1 sf.BorderSizePixel = 0 sf.ScrollBarThickness = 4 sf.ScrollBarImageColor3 = GREEN sf.CanvasSize = UDim2.new() sf.AutomaticCanvasSize = Enum.AutomaticSize.Y sf.ScrollingDirection = Enum.ScrollingDirection.Y sf.Visible = false sf.Parent = Body local layout = Instance.new("UIListLayout") layout.Padding = UDim.new(0, 4) layout.SortOrder = Enum.SortOrder.LayoutOrder layout.Parent = sf local pad = Instance.new("UIPadding") pad.PaddingRight = UDim.new(0, 8) pad.Parent = sf return sf end local function selectTab(index) for i, page in ipairs(Pages) do page.Visible = (i == index) TabButtons[i].BackgroundColor3 = (i == index) and GREEN or BG_PANEL TabButtons[i].TextColor3 = (i == index) and BG_DARK or GREEN end end for i, name in ipairs({ "Main", "Esp", "Khác" }) do local b = Instance.new("TextButton") b.Size = UDim2.new(1 / 3, -3, 1, 0) b.BackgroundColor3 = BG_PANEL b.Text = name b.Font = Enum.Font.GothamBold b.TextSize = 13 b.TextColor3 = GREEN b.AutoButtonColor = true b.Parent = TabBar addCorner(b, 4) addStroke(b, GREEN, 1) TabButtons[i] = b Pages[i] = makePage() GuiJan.Add(b.Activated:Connect(function() selectTab(i) end)) end -- Dong chuc nang dang cong tac ON/OFF local Refreshers = {} local function makeRow(page) local row = Instance.new("Frame") row.Size = UDim2.new(1, 0, 0, 28) row.BackgroundColor3 = BG_PANEL row.BorderSizePixel = 0 row.Parent = page addCorner(row, 4) addStroke(row, Color3.fromHex("0B6B33"), 1) local label = Instance.new("TextLabel") label.BackgroundTransparency = 1 label.Position = UDim2.fromOffset(8, 0) label.Size = UDim2.new(1, -70, 1, 0) label.Font = Enum.Font.GothamMedium label.TextSize = 13 label.TextXAlignment = Enum.TextXAlignment.Left label.TextColor3 = Color3.fromRGB(230, 255, 238) label.Parent = row return row, label end local function addToggle(page, text, feature) local row, label = makeRow(page) label.Text = text local btn = Instance.new("TextButton") btn.Size = UDim2.fromOffset(44, 18) btn.Position = UDim2.new(1, -52, 0.5, -9) btn.Font = Enum.Font.GothamBold btn.TextSize = 11 btn.AutoButtonColor = true btn.Parent = row addCorner(btn, 4) local function refresh() btn.Text = feature.Enabled and "ON" or "OFF" btn.BackgroundColor3 = feature.Enabled and GREEN or BG_DARK btn.TextColor3 = feature.Enabled and BG_DARK or GREEN end refresh() Refreshers[#Refreshers + 1] = refresh GuiJan.Add(btn.Activated:Connect(function() feature.Set(not feature.Enabled) refresh() end)) end local function addStepper(page, text, min, max, step, key) local row, label = makeRow(page) local function refreshLabel() label.Text = text .. ": " .. tostring(State[key]) end refreshLabel() local function mk(txt, xOff, delta) local b = Instance.new("TextButton") b.Size = UDim2.fromOffset(24, 18) b.Position = UDim2.new(1, xOff, 0.5, -9) b.BackgroundColor3 = BG_DARK b.Text = txt b.Font = Enum.Font.GothamBold b.TextSize = 14 b.TextColor3 = GREEN b.AutoButtonColor = true b.Parent = row addCorner(b, 4) addStroke(b, GREEN, 1) GuiJan.Add(b.Activated:Connect(function() State[key] = math.clamp(State[key] + delta, min, max) refreshLabel() end)) end mk("-", -56, -step) mk("+", -28, step) end local PMain, PEsp, POther = Pages[1], Pages[2], Pages[3] -- Tab Main addToggle(PMain, "Tele Kill", F.TeleKill) addToggle(PMain, "Aimbot", F.Aimbot) addToggle(PMain, "Aim Magic", F.AimMagic) addToggle(PMain, "Auto Bắn", F.AutoShoot) -- Tab Esp addToggle(PEsp, "Esp Line", F.EspLine) addToggle(PEsp, "Esp Box", F.EspBox) addToggle(PEsp, "Esp Name", F.EspName) addToggle(PEsp, "Esp Distance", F.EspDistance) addToggle(PEsp, "Esp Hologram", F.EspHologram) addToggle(PEsp, "Esp Workspace", F.EspWorkspace) -- Tab Khac addToggle(POther, "No Clip", F.NoClip) addToggle(POther, "Fly Air", F.Fly) addStepper(POther, "Fly Speed", 10, 300, 10, "FlySpeed") addToggle(POther, "Speed", F.Speed) addStepper(POther, "Speed Value", 16, 250, 4, "WalkSpeed") addToggle(POther, "Jumping Air", F.JumpAir) addToggle(POther, "Night Vision", F.NightVision) addToggle(POther, "Fix Lag", F.FixLag) selectTab(1) -- Thu nho / Phong to local minimized = false GuiJan.Add(MinBtn.Activated:Connect(function() minimized = not minimized TabBar.Visible = not minimized Body.Visible = not minimized MinBtn.Text = minimized and "+" or "-" Main.Size = minimized and UDim2.fromOffset(MENU_W, TITLE_H) or UDim2.fromOffset(MENU_W, MENU_H) end)) -- Thoat: huy GUI va tat toan bo trang thai GuiJan.Add(CloseBtn.Activated:Connect(function() Cleanup() end)) -- Keo tha menu (chuot + cam ung) do local dragging, dragInput, dragStart, startPos = false, nil, nil, nil GuiJan.Add(TitleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragInput = input dragStart = input.Position startPos = Main.Position end end)) GuiJan.Add(UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input == dragInput then local delta = input.Position - dragStart local screen = Gui.AbsoluteSize local x = startPos.X.Offset + delta.X local y = startPos.Y.Offset + delta.Y -- Giu menu nam trong man hinh local baseX = startPos.X.Scale * screen.X local baseY = startPos.Y.Scale * screen.Y x = math.clamp(x, -baseX - MENU_W + 60, screen.X - baseX - 60) y = math.clamp(y, -baseY, screen.Y - baseY - TITLE_H) Main.Position = UDim2.new(startPos.X.Scale, x, startPos.Y.Scale, y) end end)) GuiJan.Add(UserInputService.InputEnded:Connect(function(input) if dragging and (input == dragInput or input.UserInputType == Enum.UserInputType.MouseButton1) then dragging = false dragInput = nil end end)) end --================================================================== -- 10. DON DEP TOAN BO KHI THOAT --================================================================== local closed = false Cleanup = function() if closed then return end closed = true for _, f in ipairs(AllFeatures) do pcall(f.Set, false) end Esp.Jan.Clean() Esp.Running = false RegJan.Clean() table.clear(Registry) table.clear(targetCache) GuiJan.Clean() if shared.HpTeamProV1_Close == Cleanup then shared.HpTeamProV1_Close = nil end end shared.HpTeamProV1_Close = Cleanup