Pixel Slayer ⚔️
3.5k Views
14 Executions

auto kill mobs

Pixel Slayer
matjias
matjiasPublished 5
2 years ago
Please login to perform these actions:

auto kill mobs is a Pixel Slayer script for Roblox, uploaded to ScriptBlox on Jan 12, 2025.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

chat gpt in 2 min

Updates

  1. Script edited: Create script

View Raw
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()


Comments

1
Log in to join the conversation. Login
Zcopium's profile picture
Zcopium2 years ago(edited)

PLS MAKE A SCRIPT FOR SURVIVAL ODYSSEY

1

Tags

More Pixel Slayer scripts

See all
Pixel Slayer ⚔️
6.5k
13
2 years ago
Pixel Slayer ⚔️
4.6k
21
2 years ago
Pixel Slayer ⚔️
4.4k
50
2 years ago
Key System
Pixel Slayer ⚔️
4.2k
9
2 years ago
Key System
Pixel Slayer ⚔️
3.9k
5
2 years ago
Key System