auto kill mobs
Key Required Patched

auto kill mobs

Pixel Slayer ⚔️matjiasmatjias 3.5K views 7 executesUpdated Jan 12, 2025
Unrated
00
Lua Script•36 lines (1163 chars)
local workspace = game:GetService("Workspace")
local replicatedStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")

local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local mobsFolder = workspace.World.Mobs
local damageRemote = replicatedStorage.Universe.Network.Remotes.DamageFire

local function teleportAbove(target)
    if humanoidRootPart and target then
        humanoidRootPart.CFrame = target.CFrame + Vector3.new(0, 10, 0)
    end
end

local function attackMobs()
    while true do
        local mobs = mobsFolder:GetChildren()
        for _, mob in ipairs(mobs) do
            if mob:FindFirstChild("HumanoidRootPart") then
                local targetPart = mob.HumanoidRootPart
                while mob and mob.Parent == mobsFolder do
                    teleportAbove(targetPart)
                    damageRemote:FireServer(mob)
                    
                    task.wait(0.01)
                end
            end
        end
        
        task.wait(0.01)
    end
end

attackMobs()

Features & Information

chat gpt in 2 min
#free#unencrypted

Community Comments (1)

ZcopiumZcopiumJan 16, 2025(edited)

PLS MAKE A SCRIPT FOR SURVIVAL ODYSSEY

More Scripts for Pixel Slayer ⚔️