HitBox Expander Revamp
Key RequiredUniversal

HitBox Expander Revamp

Universal Script_0_0__0_0_ 2.2K views 630 executesUpdated Dec 15, 2025
Unrated
00
Lua Script•349 lines (12378 chars)
--[[
	Made By ME! <>_<>
]]
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
-- Configuration
local config = {
    excludedPlayer = "Vocaloid_fandayo",
    defaultSize = 1.5,
    enabled = false,
    showVisualEffects = true,
    customColor = Color3.fromRGB(255, 0, 0),
    customMaterial = Enum.Material.Neon,
    enableTransparency = true,
    enableCollision = false,
    smoothTransitions = true,
    notificationDuration = 3
}
-- Global variables
_G.HeadSize = config.defaultSize
_G.HitboxEnabled = config.enabled
_G.CustomSettings = config
-- Clean up existing connections
if _G.HitboxConnection then
    _G.HitboxConnection:Disconnect()
    _G.HitboxConnection = nil
end
-- Performance optimization: Track last update times
local lastUpdateTimes = {}
local updateInterval = 0.1 -- Update every 100ms
-- Enhanced hitbox expansion function
local function updateHitbox(player)
    if not player or not player.Character then return end
    
    local humanoid = player.Character:FindFirstChild("Humanoid")
    local hrp = player.Character:FindFirstChild("HumanoidRootPart")
    
    if not humanoid or not hrp then return end
    
    -- Performance: Skip if updated recently
    local currentTime = tick()
    if lastUpdateTimes[player.UserId] and (currentTime - lastUpdateTimes[player.UserId]) < updateInterval then
        return
    end
    lastUpdateTimes[player.UserId] = currentTime
    
    pcall(function()
        local targetSize = Vector3.new(_G.HeadSize, _G.HeadSize, _G.HeadSize)
        
        if config.smoothTransitions then
            -- Smooth transition using TweenService
            local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
            local sizeTween = TweenService:Create(hrp, tweenInfo, {Size = targetSize})
            sizeTween:Play()
        else
            hrp.Size = targetSize
        end
        
        hrp.Transparency = config.enableTransparency and 0.7 or 1
        hrp.BrickColor = BrickColor.new(config.customColor)
        hrp.Material = config.customMaterial
        hrp.CanCollide = config.enableCollision and (_G.HeadSize <= 1.5)
        
        -- Add visual effects
        if config.showVisualEffects and _G.HeadSize > 5 then
            local glow = hrp:FindFirstChild("HitboxGlow")
            if not glow then
                glow = Instance.new("PointLight")
                glow.Name = "HitboxGlow"
                glow.Parent = hrp
                glow.Color = config.customColor
                glow.Range = 10
                glow.Brightness = 0.5
            end
        else
            local glow = hrp:FindFirstChild("HitboxGlow")
            if glow then
                glow:Destroy()
            end
        end
    end)
end
-- Main hitbox connection
_G.HitboxConnection = RunService.RenderStepped:Connect(function()
    if not _G.HitboxEnabled then return end
    
    for _, player in ipairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Name ~= config.excludedPlayer then
            updateHitbox(player)
        end
    end
end)
-- Notification system
local function showNotification(message, duration)
    duration = duration or config.notificationDuration
    
    local gui = LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("HitboxNotifications")
    if not gui then
        gui = Instance.new("ScreenGui")
        gui.Name = "HitboxNotifications"
        gui.ResetOnSpawn = false
        gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
    end
    
    local notification = Instance.new("Frame")
    notification.Size = UDim2.new(0, 300, 0, 60)
    notification.Position = UDim2.new(1, -320, 1, -80)
    notification.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
    notification.BorderSizePixel = 0
    notification.Parent = gui
    
    local corner = Instance.new("UICorner", notification)
    corner.CornerRadius = UDim.new(0, 12)
    
    local label = Instance.new("TextLabel", notification)
    label.Size = UDim2.new(1, -20, 1, -20)
    label.Position = UDim2.new(0, 10, 0, 10)
    label.BackgroundTransparency = 1
    label.Text = message
    label.TextColor3 = Color3.new(1, 1, 1)
    label.Font = Enum.Font.Gotham
    label.TextSize = 14
    label.TextWrapped = true
    
    -- Animate in
    local tweenIn = TweenService:Create(notification, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
        Position = UDim2.new(1, -320, 1, -80)
    })
    tweenIn:Play()
    
    -- Remove after duration
    game:GetService("Debris"):AddItem(notification, duration)
end
-- Modern GUI Creation
local function createModernGUI()
    local gui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui"))
    gui.Name = "AdvancedHitboxGUI"
    gui.ResetOnSpawn = false
    gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
    
    -- Main Frame
    local mainFrame = Instance.new("Frame", gui)
    mainFrame.Size = UDim2.new(0, 320, 0, 450)
    mainFrame.Position = UDim2.fromScale(0.02, 0.5)
    mainFrame.AnchorPoint = Vector2.new(0, 0.5)
    mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
    mainFrame.BorderSizePixel = 0
    mainFrame.Active = true
    
    local mainCorner = Instance.new("UICorner", mainFrame)
    mainCorner.CornerRadius = UDim.new(0, 16)
    
    local mainStroke = Instance.new("UIStroke", mainFrame)
    mainStroke.Color = Color3.fromRGB(100, 100, 255)
    mainStroke.Thickness = 2
    mainStroke.Transparency = 0.5
    -- Title Bar
local titleBar = Instance.new("Frame", mainFrame)
titleBar.Size = UDim2.new(1, 0, 0, 50)
titleBar.Position = UDim2.new(0, 0, 0, 0)
titleBar.BackgroundTransparency = 1
    
local title = Instance.new("TextLabel", titleBar)
title.Size = UDim2.new(1, -60, 1, 0)
title.Position = UDim2.new(0, 20, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Advanced Hitbox"
title.TextColor3 = Color3.new(1,1,1)
title.Font = Enum.Font.GothamBold
title.TextSize = 18
-- Close Button
local closeBtn = Instance.new("TextButton", titleBar)
closeBtn.Size = UDim2.new(0, 30, 0, 30)
closeBtn.Position = UDim2.new(1, -35, 0, 10)
closeBtn.Text = "×"
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 20
closeBtn.TextColor3 = Color3.new(1,1,1)
closeBtn.BackgroundTransparency = 1
    
closeBtn.MouseButton1Click:Connect(function()
    gui:Destroy()
end)
    
-- Dragging functionality
local dragging = false
local dragStart, startPos
    
titleBar.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        dragStart = input.Position
        startPos = mainFrame.Position
    end
end)
    
UserInputService.InputChanged:Connect(function(input)
    if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
        local delta = input.Position - dragStart
        mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
    end
end)
    
UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = false
    end
end)
-- Content Frame
local contentFrame = Instance.new("Frame", mainFrame)
contentFrame.Size = UDim2.new(1, -40, 1, -70)
contentFrame.Position = UDim2.new(0, 20, 0, 60)
contentFrame.BackgroundTransparency = 1
    
-- Main Toggle Button
local toggleBtn = Instance.new("TextButton", contentFrame)
toggleBtn.Size = UDim2.new(1, 0, 0, 50)
toggleBtn.Position = UDim2.new(0, 0, 0, 0)
toggleBtn.Text = "ENABLE HITBOX"
toggleBtn.Font = Enum.Font.GothamBold
toggleBtn.TextSize = 16
toggleBtn.TextColor3 = Color3.new(1, 1, 1)
toggleBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
    
local toggleCorner = Instance.new("UICorner", toggleBtn)
toggleCorner.CornerRadius = UDim.new(0, 10)
    
-- Status Label
local statusLabel = Instance.new("TextLabel", contentFrame)
statusLabel.Size = UDim2.new(1, 0, 0, 20)
statusLabel.Position = UDim2.new(0, 0, 0, 60)
statusLabel.BackgroundTransparency = 1
statusLabel.Text = "Status: DISABLED"
statusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
statusLabel.Font = Enum.Font.Gotham
statusLabel.TextSize = 14
-- Toggle Button Functionality
toggleBtn.MouseButton1Click:Connect(function()
    _G.HitboxEnabled = not _G.HitboxEnabled
        
    if _G.HitboxEnabled then
        toggleBtn.Text = "DISABLE HITBOX"
        toggleBtn.BackgroundColor3 = Color3.fromRGB(50, 255, 50)
        statusLabel.Text = "Status: ENABLED"
        statusLabel.TextColor3 = Color3.fromRGB(100, 255, 100)
        showNotification("Hitbox Expander Enabled!")
    else
        toggleBtn.Text = "ENABLE HITBOX"
        toggleBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
        statusLabel.Text = "Status: DISABLED"
        statusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
        showNotification("Hitbox Expander Disabled!")
    end
end)
    
-- Size Presets
local presetButtons = {
    {Text = "Normal", Size = 1.5, Color = Color3.fromRGB(100, 100, 255)},
    {Text = "Expand", Size = 7, Color = Color3.fromRGB(255, 150, 50)},
    {Text = "Big", Size = 15, Color = Color3.fromRGB(255, 50, 50)}
}
    
for i, preset in ipairs(presetButtons) do
    local btn = Instance.new("TextButton", contentFrame)
    btn.Size = UDim2.new(1, 0, 0, 35)
    btn.Position = UDim2.new(0, 0, 0, 90 + (i-1)*40)
    btn.Text = preset.Text .. " (" .. preset.Size .. ")"
    btn.Font = Enum.Font.Gotham
    btn.TextSize = 14
    btn.TextColor3 = Color3.new(1, 1, 1)
    btn.BackgroundColor3 = preset.Color
        
    local btnCorner = Instance.new("UICorner", btn)
    btnCorner.CornerRadius = UDim.new(0, 8)
        btn.MouseButton1Click:Connect(function()
        _G.HeadSize = preset.Size
        showNotification("Size set to " .. preset.Text .. " (" .. preset.Size .. ")")
    end)
end
    
-- Custom Size Input
local customFrame = Instance.new("Frame", contentFrame)
customFrame.Size = UDim2.new(1, 0, 0, 40)
customFrame.Position = UDim2.new(0, 0, 0, 220)
customFrame.BackgroundTransparency = 1
    
local customLabel = Instance.new("TextLabel", customFrame)
customLabel.Size = UDim2.new(0, 80, 1, 0)
customLabel.Position = UDim2.new(0, 0, 0, 0)
customLabel.BackgroundTransparency = 1
customLabel.Text = "Custom:"
customLabel.TextColor3 = Color3.new(1, 1, 1)
customLabel.Font = Enum.Font.Gotham
customLabel.TextSize = 14
    
local customInput = Instance.new("TextBox", customFrame)
customInput.Size = UDim2.new(0, 60, 1, 0)
customInput.Position = UDim2.new(0, 85, 0, 0)
customInput.Text = "10"
customInput.Font = Enum.Font.Gotham
customInput.TextSize = 14
customInput.TextColor3 = Color3.new(0, 0, 0)
customInput.BackgroundColor3 = Color3.new(1, 1, 1)
    
local inputCorner = Instance.new("UICorner", customInput)
inputCorner.CornerRadius = UDim.new(0, 6)
    
local applyBtn = Instance.new("TextButton", customFrame)
applyBtn.Size = UDim2.new(0, 50, 1, 0)
applyBtn.Position = UDim2.new(0, 150, 0, 0)
applyBtn.Text = "Apply"
applyBtn.Font = Enum.Font.Gotham
applyBtn.TextSize = 14
applyBtn.TextColor3 = Color3.new(1, 1, 1)
applyBtn.BackgroundColor3 = Color3.fromRGB(100, 200, 255)
    local applyCorner = Instance.new("UICorner", applyBtn)
    applyCorner.CornerRadius = UDim.new(0, 6)
    
    applyBtn.MouseButton1Click:Connect(function()
        local value = tonumber(customInput.Text)
        if value and value > 0 and value <= 50 then
            _G.HeadSize = value
            showNotification("Custom size set to " .. value)
        else
            showNotification("Invalid size! Use 1-50")
        end
    end)
    
    -- Current Size Display
    local sizeDisplay = Instance.new("TextLabel", contentFrame)
    sizeDisplay.Size = UDim2.new(1, 0, 0, 25)
    sizeDisplay.Position = UDim2.new(0, 0, 0, 270)
    sizeDisplay.BackgroundTransparency = 1
    sizeDisplay.Text = "Current Size: " .. _G.HeadSize
    sizeDisplay.TextColor3 = Color3.fromRGB(200, 200, 255)
    sizeDisplay.Font = Enum.Font.Gotham
    sizeDisplay.TextSize = 14
    
    -- Update size display
    game:GetService("RunService").Heartbeat:Connect(function()
        sizeDisplay.Text = "Current Size: " .. _G.HeadSize
    end)
end
-- Initialize the GUI
createModernGUI()
showNotification("Advanced Hitbox Expander Loaded!", 5)

Features & Information

Hitbox Expander Select Custom Hitboxes. Select Three types of Hitboxes. < >_< > ---Suggestions Are Accepted!---
#Hitbox#Hitbox Expander#Expander#Keyless#Free

Community Comments (4)

_0_0__0_0_Dec 15, 2025

Script was tested in Sniper Duels

realsrealsDec 16, 2025

@Shadow69 i dont see a problem using ai for simple things like hitbox expander

realsrealsDec 17, 2025

@Shadow69 Not needed if what i need is in Ai's control

realsrealsDec 18, 2025

@Shadow69 Keep myself safe? Thank you young blood.

More Scripts for Universal Scripts