NPC HITBOX EXPANDER
Key RequiredUniversal

NPC HITBOX EXPANDER

Universal Scripthallworldhallworld 38.6K views 195 executesUpdated Jul 2, 2024
5.0/ 5(4 votes)
40100% Positive
Lua Script•51 lines (1344 chars)
--[[
    WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
]]
-- NPC Hitbox Expander by hallworld#0 (discord)
-- PLEASE READ ALL THE COMMENTS!!

-- IF YOU CANNOT FIND THE LOCATION:
--THE SCRIPT HAS BUILT IN PRINTING LOCATION
--WHICH WHENEVER YOU CLICK ANY PART (CLICK THE NPC TORSO)
--IT WILL PRINT THE LOCATION OF THAT DUMMY IN CONSOLE!!!!

-- PUT YOUR ENEMY LOCATION HERE IT MUST BE TORSO
local npc = game.Workspace.ActivePlayers.Dummy.Torso
-- ENEMY HITBOX SIZE
local newSize = Vector3.new(15, 15, 15)
-- ENEMY HITBOZ SIZE TRANSPARENCY
local newTransparency = 0.5

local function expandHitbox()
    npc.Size = newSize
    npc.Transparency = newTransparency
    npc.CanCollide = false
end

-- FUNCTION THAT PRINTS THE PART THAT YOU CLICKED IN CONSOLE
local function onPartClicked(part)
    print("Clicked part: " .. part:GetFullName())
end

local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")

local function onMouseClick()
    local player = Players.LocalPlayer
    local mouse = player:GetMouse()

    mouse.Button1Down:Connect(function()
        local target = mouse.Target
        if target then
            onPartClicked(target)
        end
    end)
end

onMouseClick()

-- recheck every 1 second
while true do
    expandHitbox()
    wait(1)
end

Features & Information

PLEASE PLEASE PLEASE PLEASE READ ALL THE COMMENTS AND READ BELOW: THE GUI VERSION IS OUT!!! https://scriptblox.com/script/Universal-Script-GUI-NPC-HITBOX-EXPANDER-V2-15167 -- NPC Hitbox Expander by hallworld#0 (discord) -- IF YOU CANNOT FIND THE LOCATION: --THE SCRIPT HAS BUILT IN PRINTING LOCATION --WHICH WHENEVER YOU CLICK ANY PART (CLICK THE NPC TORSO) --IT WILL PRINT THE LOCATION OF THAT DUMMY IN CONSOLE!!!! --THEN COPY THAT AND PUT IT TO THE "LOCAL NPC" VARIABLE
#hitbox#HITBOX#EXPANDER#HITBOX EXPANDER#NPC

Community Comments (7)

hallworldhallworldJul 2, 2024(edited)

THE CLICK-TO-PRINT IN CONSOLE WONT WORK FOR MOBILE USERS SINCE THEY CANNOT OPEN CONSOLE!! SO MOBILE USERS, YOU HAVE TO FIGURE IT OUT USING DARK DEX OR A CHOICE FROM YOUR OWN

hallworldhallworldJul 2, 2024(edited)

TO ANYONE WHO WANTS TO HELP ME MAKE A GUI FOR THE SCRIPT! PLEASE DM ME IN MY DISCORD: hallworld

Jamjam0139Jamjam0139Jul 2, 2024(edited)

Why don't try fluxus there's built in console

hallworldhallworldJul 2, 2024(edited)

oh thats an idea! it also works for any console i just thought mobile users dont have consoles, that works too!! but i am not sure of that it support mobile clicks, please check for me!

darktexevdarktexevJul 2, 2024(edited)

The one I've been looking for but I'm on mobile. I don't really understand the instructions since it's only been months I used scripts

Bi2_BlackSunBi2_BlackSunJul 2, 2024(edited)

how to use that..

hallworldhallworldJul 2, 2024(edited)

THE GUI VERSION IS OUT!!!! https://scriptblox.com/script/Universal-Script-GUI-NPC-HITBOX-EXPANDER-V2-15167

More Scripts for Universal Scripts