ADVERTISEMENTREMOVE ADS
Game icon

Auto Attack Nearby Enemies | All Executors

Blox Fruits
2 weeks ago
Script preview thumbnail
Script Preview
ADVERTISEMENTREMOVE ADS
37 Lines • 1.07 KiB
Raw
local path = workspace.Enemies
local LocalPlayer = game.Players.LocalPlayer
while true do
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp then
local HrpPos = hrp.Position
local s = 50 --max range
local ene = nil
for _, v in path:GetChildren() do
if v:FindFirstChild("HumanoidRootPart") then
local dist = (v.HumanoidRootPart.Position - HrpPos).Magnitude
if dist < s then
s = dist
ene = v
end
end
end
local v103 = game.Players.LocalPlayer.UserId
local v104 = tostring(v103):sub(2, 4)
local v105 = coroutine.running
local v106 = v104 .. tostring(v105()):sub(11, 15)
if ene then
local head = ene:FindFirstChild("Head")
if head then
game:GetService("ReplicatedStorage").Modules.Net["RE/RegisterAttack"]:FireServer(0)
local args = {
head,
{},
v106
}
game:GetService("ReplicatedStorage").Modules.Net["RE/RegisterHit"]:FireServer(unpack(args))
end
end
end
task.wait(0.01)
end
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS