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