attack aura
Key Required

attack aura

Arcadia Betaneutralneutral 3.4K views 25 executesUpdated Feb 24, 2025
5.0/ 5(3 votes)
30100% Positive
Lua Script•28 lines (969 chars)
local game = game
local players = game:GetService("Players")
local localPlayer = players.LocalPlayer
local character = localPlayer.Character
local runService = game:GetService("RunService")

runService.RenderStepped:Connect(function()
    character = localPlayer.Character
    local target = nil
    local distance = 100
    local tool
    for _,v in character:GetChildren() do
        if v:FindFirstChild("Damage") then
            tool = v
        end
    end
    if tool then
        for _,v in workspace:GetChildren() do
            if v:FindFirstChild("Mob") and v:FindFirstChild("HumanoidRootPart") and (v.HumanoidRootPart.CFrame.Position - character.HumanoidRootPart.CFrame.Position).Magnitude < distance then
                distance = (v.HumanoidRootPart.CFrame.Position - character.HumanoidRootPart.CFrame.Position).Magnitude
                target = v
            end
        end
    end
    if target then
        tool.Damage:FireServer(target)
    end
end)

Features & Information

attacks any enemy nearby as long as you got a sword

Community Comments (2)

GoonJoeGoonJoeFeb 25, 2025(edited)

W

KestKestMar 1, 2025(edited)

make a script for BCWO