Script
Key Required

Script

Zombie Attackandrei17kandrei17k 7.2K views 164 executesUpdated Nov 2, 2025
Unrated
00
Lua Script•86 lines (2435 chars)
-- Credits to 17aandrei

local player = game.Players.LocalPlayer

local foldersToModify = {
    workspace:WaitForChild("enemies"),
    workspace:WaitForChild("BossFolder")
}

local HEAD_TRANSPARENCY = 0.8
local HEAD_SIZE = Vector3.new(6, 6, 6)

local function modifyHead(model)
    if not model:IsA("Model") then return end
    local head = model:FindFirstChild("Head")
    if head and head:IsA("BasePart") then
        head.Transparency = HEAD_TRANSPARENCY
        head.Size = HEAD_SIZE
        if model.PrimaryPart then
            model:PivotTo(model.PrimaryPart.CFrame)
        end
        print("[HeadModifier] Modified Head for " .. model.Name)
    end
end

for _, folder in ipairs(foldersToModify) do
    for _, model in ipairs(folder:GetChildren()) do
        modifyHead(model)
    end
    folder.ChildAdded:Connect(function(child)
        task.wait(0.1)
        modifyHead(child)
    end)
end

local powerupsFolder = workspace:WaitForChild("Powerups")
local LOOP_INTERVAL = 5

local WALK_SPEED = 100
local JUMP_POWER = 150

local function getRootPart()
    local character = player.Character or player.CharacterAdded:Wait()
    return character:WaitForChild("HumanoidRootPart", 5)
end

local function applyMovementSettings()
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid", 5)
    if humanoid then
        humanoid.WalkSpeed = WALK_SPEED
        humanoid.JumpPower = JUMP_POWER
        print("[Movement] Applied WalkSpeed=" .. tostring(WALK_SPEED) .. " JumpPower=" .. tostring(JUMP_POWER))
    end
end

player.CharacterAdded:Connect(function()
    task.wait(0.5)
    applyMovementSettings()
end)
if player.Character then
    task.spawn(function()
        task.wait(0.5)
        applyMovementSettings()
    end)
end

local function teleportPowerups()
    local rootPart = getRootPart()
    if not rootPart then return end
    for _, obj in ipairs(powerupsFolder:GetChildren()) do
        if obj:IsA("BasePart") then
            obj.CFrame = rootPart.CFrame * CFrame.new(math.random(-3, 3), 2, math.random(-3, 3))
        elseif obj:IsA("Model") and obj.PrimaryPart then
            obj:SetPrimaryPartCFrame(rootPart.CFrame * CFrame.new(math.random(-3, 3), 2, math.random(-3, 3)))
        end
    end
end

task.spawn(function()
    while true do
        teleportPowerups()
        applyMovementSettings()
        task.wait(LOOP_INTERVAL)
    end
end)

Features & Information

* Automatically picks up POWERUPS if there are any. * Changeable hitbox expander for bosses, entities. * Walkspeed and JumpPower.
#zombieattack

Community Comments (0)

No comments yet for this script.

More Scripts for Zombie Attack