Npc and bot hitbox expander universal
Key RequiredUniversal

Npc and bot hitbox expander universal

Universal ScriptUnknown_personUnknown_person 5.5K views 610 executesUpdated Apr 10, 2025
2.5/ 5(2 votes)
1150% Positive
Lua Script•61 lines (1852 chars)
-- Transparent Box Hitbox Expander (Safe, No Glitching)
-- Made by ryu949

--// Services
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")

--// Settings
local BoxSize = Vector3.new(10, 10, 10)
local BoxColor = Color3.fromRGB(255, 0, 0)
local Transparency = 0.5

--// Check if model is a player
local function isPlayer(model)
    for _, player in pairs(Players:GetPlayers()) do
        if player.Character == model then
            return true
        end
    end
    return false
end

--// Create fake transparent hitbox
local function addBox(model)
    if not isPlayer(model) and model:FindFirstChild("HumanoidRootPart") then
        -- Prevent duplicates
        if model:FindFirstChild("FakeHitbox") then return end

        local box = Instance.new("Part")
        box.Name = "FakeHitbox"
        box.Size = BoxSize
        box.Transparency = Transparency
        box.Color = BoxColor
        box.Anchored = false
        box.CanCollide = false
        box.Massless = true
        box.Material = Enum.Material.ForceField
        box.CFrame = model.HumanoidRootPart.CFrame
        box.Parent = model

        local weld = Instance.new("WeldConstraint")
        weld.Part0 = box
        weld.Part1 = model.HumanoidRootPart
        weld.Parent = box
    end
end

--// Apply to existing bots/NPCs
for _, npc in pairs(Workspace:GetDescendants()) do
    if npc:IsA("Model") and npc:FindFirstChild("Humanoid") and npc:FindFirstChild("HumanoidRootPart") and not isPlayer(npc) then
        addBox(npc)
    end
end

--// Apply to future bots/NPCs
Workspace.DescendantAdded:Connect(function(descendant)
    task.wait(0.5)
    if descendant:IsA("Model") and descendant:FindFirstChild("Humanoid") and descendant:FindFirstChild("HumanoidRootPart") and not isPlayer(descendant) then
        addBox(descendant)
    end
end)

Features & Information

Npc and bot hitbox expander universal This script only work on npc and bot (I made this script) Username: ryu949
#Npc and bot hitbox expander

Community Comments (1)

SlomSlomAug 12, 2026

Really good script

More Scripts for Universal Scripts