Key Required
attack aura
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

W
make a script for BCWO