Heatbox Expander
Key Required

Heatbox Expander

Skill Based Boss Fightspoiu98765430poiu98765430 4.1K views 6.9K executesUpdated Sep 3, 2025
2.0/ 5(5 votes)
2340% Positive
Lua Script•108 lines (3085 chars)
local Player = game.Players.LocalPlayer

-- Hitbox Settings
local BossHitbox = {
    Size = {Width = 600, Height = 600, Depth = 600},
    Color = Color3.fromRGB(255, 0, 0),
    Transparency = 0.9,
    Material = Enum.Material.Plastic
}

local MinionHitbox = {
    Size = {Width = 600, Height = 600, Depth = 600},
    Color = Color3.fromRGB(0, 255, 0),
    Transparency = 0.9,
    Material = Enum.Material.Neon
}

local firstBossName = nil

-- Unlimited Energy Function (Fixed)
local function infiniteEnergy()
    while true do
        -- Use Player.Energy like in the example script
        if game.Players.LocalPlayer:FindFirstChild("Energy") then
            game.Players.LocalPlayer.Energy.Value = math.huge
        end
        task.wait(0.1)
    end
end

-- Create Hitbox Function
local function createHitbox(target, settings)
    if not target:FindFirstChild("HumanoidRootPart") then return end
    
    for _, part in pairs(target:GetChildren()) do
        if part.Name == "CustomHitbox" then
            part:Destroy()
        end
    end
    
    local hitbox = Instance.new("Part")
    hitbox.Name = "CustomHitbox"
    hitbox.Size = Vector3.new(settings.Size.Width, settings.Size.Height, settings.Size.Depth)
    hitbox.Transparency = settings.Transparency
    hitbox.Color = settings.Color
    hitbox.Material = settings.Material
    hitbox.CanCollide = false
    hitbox.Anchored = true
    hitbox.CFrame = target.HumanoidRootPart.CFrame
    hitbox.Parent = target
    
    spawn(function()
        while hitbox and hitbox.Parent and target.Parent do
            hitbox.CFrame = target.HumanoidRootPart.CFrame
            task.wait(0.1)
        end
        if hitbox then hitbox:Destroy() end
    end)
end

-- Check Boss Function
local function checkBoss(enemy)
    if not firstBossName then
        if enemy.Name ~= "Training Dummy" then
            firstBossName = enemy.Name
            print("🎯 Found first boss: "..firstBossName)
            return true
        end
        return false
    end
    return enemy.Name == firstBossName
end

-- Create Hitboxes for All Enemies
local function createAllHitboxes()
    while true do
        if firstBossName then
            local bossExists = false
            for _, enemy in pairs(workspace.Characters.Enemies:GetChildren()) do
                if enemy.Name == firstBossName then
                    bossExists = true
                    break
                end
            end
            if not bossExists then
                firstBossName = nil
            end
        end
        
        for _, enemy in pairs(workspace.Characters.Enemies:GetChildren()) do
            if enemy:FindFirstChild("HumanoidRootPart") then
                if checkBoss(enemy) then
                    createHitbox(enemy, BossHitbox)
                else
                    createHitbox(enemy, MinionHitbox)
                end
            end
        end
        task.wait(1)
    end
end

-- Start Everything
spawn(infiniteEnergy)
spawn(createAllHitboxes)

print("✅ Script started successfully!")
print("⚡ Unlimited energy (working!)")

Features & Information

Hitbox Expander - I'm not sure if it works because I haven't tested it yet, and I used AI to create it. Hope it works well. **Note:** Some weapon types like melee weapons may not attack from long range, but at least it increases the attack range a bit.

Community Comments (20)

poiu98765430poiu98765430Sep 3, 2025

Oh, it doesn't work? Sorry, I'll fix it for you.

poiu98765430poiu98765430Sep 3, 2025

I've fixed it completely. Hope it works now

tharver357tharver357Sep 3, 2025

Add auto farm or kill aura maybe and it be good

Replying to @tharver357
poiu98765430poiu98765430Sep 3, 2025

@tharver357 The boss cannot be killed instantly because the server controls its HP, damage reduction, and skill cooldowns. We can only send attack commands from the client, but the server decides how much damage the boss actually takes

poiu98765430poiu98765430Sep 3, 2025

Oh, sorry. I don't have much knowledge about scripting and I don't have the tools because I play on mobile. Therefore, I can only write simple scripts for now.

poiu98765430poiu98765430Sep 3, 2025

Then I'll give it a try, if it works then that's great.

poiu98765430poiu98765430Sep 3, 2025

I’m not sure if it will work, and my English isn’t very strong. I’m from Thailand

poiu98765430poiu98765430Sep 3, 2025

The answer I sent comes from an AI and has been adjusted to read as clearly as possible.

priyakadam9151priyakadam9151Sep 4, 2025

คุณสามารถสร้างสคริปต์สำหรับ AI ได้ไหม? [ฉันลบความคิดเห็นล่าสุดของฉันไปแล้ว ถ้าคุณจำได้]

ky1oky1oSep 4, 2025

How do I script on mobile?

Replying to @ky1o
poiu98765430poiu98765430Sep 8, 2025

@djkren The first thing I use when scripting on mobile is GPT. It really helps, especially if you know some info about the game you’re scripting for. Also, checking the F9 console is super useful while testing. You can ask GPT to generate or fix scripts for you (like UI design, features, or bug fixes), though it might have more errors compared to writing code manually. And yeah, the UI it makes sometimes looks a bit rough.

jaxyDGDF8UGFJGMjaxyDGDF8UGFJGMSep 7, 2025

does it work?

ky1oky1oSep 11, 2025

Ok thanks man

dogmanj0010dogmanj0010Sep 12, 2025

add inf hp

Replying to @dogmanj0010
poiu98765430poiu98765430Sep 13, 2025

@dogmanj0010 I tried to keep my health from dropping, but I couldn’t do it. Even though we can see that our health isn’t decreasing, we still die anyway.

dogmanj0010dogmanj0010Sep 13, 2025

aw man :(

dogmanj0010dogmanj0010Sep 14, 2025

can you add fly?

Replying to @dogmanj0010
poiu98765430poiu98765430Sep 15, 2025

@dogmanj0010 Good news: fly works! Bad news: you drop dead a few seconds after lifting off.

dogmanj0010dogmanj0010Sep 24, 2025

why? does the game know?

dogmanj0010dogmanj0010Sep 25, 2025

add speed or something to help cus cfw is to hard

More Scripts for Skill Based Boss Fights