-- https://discord.gg/8wSP7XedR8 local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local CollectionService = game:GetService("CollectionService") local player = Players.LocalPlayer local character = player.Character local Comm = require(ReplicatedStorage.ReplicatedStorage.Packages.Comm) local CombatService = Comm.ClientComm.new(game.ReplicatedStorage.RemoteServices, false, "CombatService"):BuildObject() local function autoAttack() if not character or not character:FindFirstChild("HumanoidRootPart") then return end local mobs = {} for _, mob in CollectionService:GetTagged("Mob") do if mob:IsDescendantOf(workspace) and mob:FindFirstChild("Humanoid") then local humanoid = mob.Humanoid if humanoid.Health > 0 then local distance = (mob:GetPivot().Position - character:GetPivot().Position).Magnitude if distance <= 50 then table.insert(mobs, mob) if #mobs >= 5 then break end end end end end if #mobs > 0 then CombatService:UseWeapon(1, mobs, 1, nil) end end while true do wait(0.1) autoAttack() end