NPC Head HItbox(Work IN Xeno too)
Key Required

NPC Head HItbox(Work IN Xeno too)

CQB HellidkNuhPekoidkNuhPeko 2.1K views 10K executesUpdated Aug 17, 2026
Unrated
00
Lua Script•128 lines (4152 chars)
-- Powered by ScriptBlox.com

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local LocalPlayer = Players.LocalPlayer

local size = 6.3
local transparency = 0.6
local color = Color3.fromRGB(0, 180, 180)

local cache = {}

local function reset(head, model)
    if cache[head] then
        local data = cache[head]
        head.Size = data.Size
        head.Transparency = data.Transparency
        head.CanCollide = data.CanCollide
        head.Material = data.Material
        head.Color = data.Color
        head.Massless = data.Massless
        cache[head] = nil
    end
    if model then
        local hl = model:FindFirstChild("HL")
        if hl then
            hl:Destroy()
        end
    end
end

local function cleanCorpse(model)
    local hl = model:FindFirstChild("HL")
    if hl then
        hl:Destroy()
    end

    for _, v in ipairs(model:GetDescendants()) do
        if v:IsA("BasePart") then
            v.CanCollide = false
            if v.Name == "Head" or v.Name == "HeadHitbox" then
                v.Size = Vector3.new(1.2, 1, 1)
                v.Transparency = 0
            end
        end
    end
end

RunService.Stepped:Connect(function()
    for head, _ in pairs(cache) do
        if head and head.Parent then
            head.CanCollide = false
        end
    end
end)

local function update()
    local valid = {}

    pcall(function()
        for _, v in ipairs(Workspace:GetChildren()) do
            if v:IsA("Model") and v ~= LocalPlayer.Character and not Players:GetPlayerFromCharacter(v) then
                if string.find(v.Name, "Corpse") or string.find(v.Name, "Ragdoll") then
                    cleanCorpse(v)
                else
                    local head = v:FindFirstChild("HeadHitbox") or v:FindFirstChild("Head")
                    local hum = v:FindFirstChildWhichIsA("Humanoid")

                    if head and head:IsA("BasePart") then
                        if hum and hum.Health > 0 then
                            valid[head] = v

                            if not cache[head] then
                                cache[head] = {
                                    Size = head.Size,
                                    Transparency = head.Transparency,
                                    CanCollide = head.CanCollide,
                                    Material = head.Material,
                                    Color = head.Color,
                                    Massless = head.Massless
                                }
                            end

                            head.Massless = true
                            head.CanCollide = false
                            head.Anchored = false
                            
                            if head.Size ~= Vector3.new(size, size, size) then
                                head.Size = Vector3.new(size, size, size)
                            end
                            
                            head.Transparency = transparency
                            head.Color = cache[head].Color

                            local hl = v:FindFirstChild("HL")
                            if not hl then
                                hl = Instance.new("Highlight")
                                hl.Name = "HL"
                                hl.FillTransparency = 1
                                hl.OutlineColor = color
                                hl.OutlineTransparency = 0.3
                                hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
                                hl.Parent = v
                            end
                        else
                            cleanCorpse(v)
                        end
                    end
                end
            end
        end

        for head, _ in pairs(cache) do
            if not head or not head.Parent or not valid[head] then
                reset(head, head and head.Parent)
            end
        end
    end)
end

task.spawn(function()
    while true do
        update()
        task.wait(0.1)
    end
end)

Features & Information

Poor feature -CQB Hell hitbox Fah -(when npc die it will got auto deleted(to people no got blocking by it) -Free-
#CQB Hell#CQB

Community Comments (0)

No comments yet for this script.

More Scripts for CQB Hell