-- Name: NPC head box inf 6 (Lag-Free Edition) -- Features: Safe Hitbox, Health-Based ESP, Size Control, Anti-Lag local Player = game.Players.LocalPlayer local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Title = Instance.new("TextLabel") local HitboxBtn = Instance.new("TextButton") local EspBtn = Instance.new("TextButton") local HideBtn = Instance.new("TextButton") local IncreaseBtn = Instance.new("TextButton") local DecreaseBtn = Instance.new("TextButton") local SizeLabel = Instance.new("TextLabel") -- الإعدادات _G.HeadSize = 12 local hitboxEnabled = false local espEnabled = false ScreenGui.Parent = game.CoreGui ScreenGui.Name = "NPC_HeadBox_Inf6_Pro" -- [ الواجهة الرئيسية ] MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) MainFrame.Position = UDim2.new(0.35, 0, 0.25, 0) MainFrame.Size = UDim2.new(0, 230, 0, 230) MainFrame.Active = true MainFrame.Draggable = true Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 12) local Stroke = Instance.new("UIStroke", MainFrame) Stroke.Color = Color3.fromRGB(255, 0, 50) Stroke.Thickness = 1.5 -- [ العنوان ] Title.Parent = MainFrame Title.Text = "NPC HEAD BOX INF 6" Title.Size = UDim2.new(1, 0, 0, 35) Title.BackgroundColor3 = Color3.fromRGB(255, 0, 50) Title.TextColor3 = Color3.new(1, 1, 1) Title.Font = Enum.Font.GothamBold Title.TextSize = 14 Instance.new("UICorner", Title).CornerRadius = UDim.new(0, 12) -- [ أزرار الوظائف ] local function styleBtn(btn, text, pos) btn.Parent = MainFrame btn.Text = text btn.Position = pos btn.Size = UDim2.new(0.8, 0, 0, 32) btn.BackgroundColor3 = Color3.fromRGB(40, 40, 45) btn.TextColor3 = Color3.fromRGB(200, 200, 200) btn.Font = Enum.Font.GothamSemibold btn.TextSize = 11 Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6) end styleBtn(HitboxBtn, "HITBOX: DEACTIVATED", UDim2.new(0.1, 0, 0.22, 0)) styleBtn(EspBtn, "NPC ESP: OFF", UDim2.new(0.1, 0, 0.38, 0)) -- [ التحكم بالحجم ] SizeLabel.Parent = MainFrame SizeLabel.Text = "SIZE: " .. _G.HeadSize SizeLabel.Position = UDim2.new(0, 0, 0.55, 0) SizeLabel.Size = UDim2.new(1, 0, 0, 20) SizeLabel.TextColor3 = Color3.new(1, 1, 1) SizeLabel.Font = Enum.Font.GothamBold SizeLabel.BackgroundTransparency = 1 DecreaseBtn.Parent = MainFrame DecreaseBtn.Text = "-" DecreaseBtn.Position = UDim2.new(0.15, 0, 0.7, 0) DecreaseBtn.Size = UDim2.new(0, 40, 0, 35) DecreaseBtn.BackgroundColor3 = Color3.fromRGB(255, 0, 50) DecreaseBtn.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", DecreaseBtn).CornerRadius = UDim.new(0, 6) IncreaseBtn.Parent = MainFrame IncreaseBtn.Text = "+" IncreaseBtn.Position = UDim2.new(0.65, 0, 0.7, 0) IncreaseBtn.Size = UDim2.new(0, 40, 0, 35) IncreaseBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 100) IncreaseBtn.TextColor3 = Color3.new(1, 1, 1) Instance.new("UICorner", IncreaseBtn).CornerRadius = UDim.new(0, 6) -- [ الزر العائم القابل للسحب ] HideBtn.Parent = ScreenGui HideBtn.Text = "6" HideBtn.Size = UDim2.new(0, 45, 0, 45) HideBtn.Position = UDim2.new(0.05, 0, 0.5, 0) HideBtn.BackgroundColor3 = Color3.fromRGB(255, 0, 50) HideBtn.TextColor3 = Color3.new(1, 1, 1) HideBtn.Draggable = true Instance.new("UICorner", HideBtn).CornerRadius = UDim.new(1, 0) Instance.new("UIStroke", HideBtn).Thickness = 2 --- [ العمليات ] --- HideBtn.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end) HitboxBtn.MouseButton1Click:Connect(function() hitboxEnabled = not hitboxEnabled HitboxBtn.Text = hitboxEnabled and "HITBOX: ACTIVE" or "HITBOX: DEACTIVATED" HitboxBtn.BackgroundColor3 = hitboxEnabled and Color3.fromRGB(0, 180, 100) or Color3.fromRGB(40, 40, 45) end) EspBtn.MouseButton1Click:Connect(function() espEnabled = not espEnabled EspBtn.Text = espEnabled and "NPC ESP: ON" or "NPC ESP: OFF" EspBtn.BackgroundColor3 = espEnabled and Color3.fromRGB(0, 180, 100) or Color3.fromRGB(40, 40, 45) end) IncreaseBtn.MouseButton1Click:Connect(function() _G.HeadSize = _G.HeadSize + 1 SizeLabel.Text = "SIZE: " .. _G.HeadSize end) DecreaseBtn.MouseButton1Click:Connect(function() if _G.HeadSize > 1 then _G.HeadSize = _G.HeadSize - 1 SizeLabel.Text = "SIZE: " .. _G.HeadSize end end) -- الحلقة الأذكى والأخف (Lag-Free Loop) spawn(function() while true do task.wait(0.8) -- تحديث متزن لتقليل اللاق for _, v in pairs(game.Workspace:GetDescendants()) do if v:IsA("Model") and v:FindFirstChild("Humanoid") and not game.Players:GetPlayerFromCharacter(v) then local hum = v:FindFirstChild("Humanoid") local head = v:FindFirstChild("Head") -- الهيت بوكس (تحديث فقط عند التغيير) if head and hitboxEnabled then if head.Size ~= Vector3.new(_G.HeadSize, _G.HeadSize, _G.HeadSize) then head.Size = Vector3.new(_G.HeadSize, _G.HeadSize, _G.HeadSize) head.Transparency = 0.6 head.CanCollide = false head.Massless = true end end -- الـ ESP الملون (حسب الصحة) local highlight = v:FindFirstChild("ESP_Highlight") if espEnabled then if not highlight then highlight = Instance.new("Highlight", v) highlight.Name = "ESP_Highlight" highlight.OutlineColor = Color3.new(1, 1, 1) end -- تغيير اللون حسب الدم if hum.Health < (hum.MaxHealth * 0.3) then highlight.FillColor = Color3.fromRGB(255, 0, 0) -- أحمر (دم قليل) else highlight.FillColor = Color3.fromRGB(0, 255, 0) -- أخضر (دم جيد) end else if highlight then highlight:Destroy() end end end end end end)