Universal Script 📌
4.3k Views
3.0k 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
Ilovesinglemoms4 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
6.8k
100.7k
Bumped 12 minutes ago

Script hub

SAGAZx Hub

Script hub
280.0k
188.8k
Bumped 44 minutes ago
Key System
Script hub
307
351
Bumped 2 hours ago

Script hub

Blythe

Script hub
9.0k
55.2k
Bumped 3 hours ago
Key System
Script hub
516
6.7k
Bumped 6 hours ago
Key System
Universal Script 📌
7.2k
105.0k
Bumped 8 hours ago
Script hub
523
2.2k
Bumped 9 hours ago
Key System