Key Required
Key Required Patched
auto kill mobs
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
Community Comments (1)
More Scripts for Pixel Slayer ⚔️
Key Required
Key Required
Keyless

PLS MAKE A SCRIPT FOR SURVIVAL ODYSSEY