Universal Script 📌
4.2k Views
2.5k Executions

Universal hitbox npc

Universal Script 📌
*rac3
*rac310 followers
1 year 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

Max limit of 60 to prevent lag

View Raw
-- NPC Hitbox Expander GUI — Works with most damage tools
-- Modes:
--  - Proxy: Adds a welded neon-red hitbox part (CanTouch/CanQuery = true) so weapons and raycasts register.
--  - Resize: Resizes the real HRP, optionally tints neon red. Reverts cleanly on disable.
-- Default size: 9, transparency: 0.4, mode: Proxy

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

--// Constants
local GUI_NAME = "NPC_Hitbox_GUI"
local PROXY_NAME = "NF_NPC_Hitbox"
local TAG_ATTR = "NF_HitboxTag"
local MODE_PROXY, MODE_RESIZE = "Proxy", "Resize"

--// Cleanup previous UI
local old = CoreGui:FindFirstChild(GUI_NAME)
if old then old:Destroy() end

--// State
local enabled = false
local currentSize = 9
local currentTransparency = 0.40
local mode = MODE_PROXY

--// Helpers
local function isNPC(model)
    if not (model and model:IsA("Model")) then return false end
    local hum = model:FindFirstChildOfClass("Humanoid")
    if not hum then return false end
    return Players:GetPlayerFromCharacter(model) == nil
end

local function getRoot(model)
    if not model then return nil end
    return model:FindFirstChild("HumanoidRootPart")
        or model:FindFirstChild("UpperTorso")
        or model:FindFirstChild("Torso")


Comments

3
Log in to join the conversation. Login
Ilovesinglemoms's profile picture
Ilovesinglemoms3 months ago

Can I change the size of the hitbox or its just that so it can function properly

1
*rac3's profile picture
*rac3Uploader1 year ago

I have no thumbnail btw

1
*rac3's profile picture
*rac3Uploader1 year ago

Made by me and universal

1

More universal scripts

See all
Script hub
16.3k
3.2k
Bumped 12 minutes ago
Key System
Paid
Script hub
16.9k
86.9k
Bumped 12 minutes ago
Script hub
135
26
Approved 2 hours ago