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!)")