Universal Script 📌
6.0k Views
1.2k Executions

Npc and bot hitbox expander universal

Universal Script 📌
itzallqv2
itzallqv210K executions
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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

View Raw
-- 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



Comments

1
Log in to join the conversation. Login
Slom's profile picture
Slom4 months ago

Really good script

1