local localPlayer = game:GetService("Players").LocalPlayer game:GetService("RunService").RenderStepped:Connect(function() for _,v in workspace.MobHolder:GetChildren() do local character = localPlayer.Character if v:FindFirstChild("Enemy") and v.Enemy.Health > 0 and character:FindFirstChildWhichIsA("Tool") and (character.HumanoidRootPart.Position - v.Torso.Position).Magnitude < 25 then task.wait() game:GetService("ReplicatedStorage").GameRemotes.DamageEvent:FireServer(v.Torso,v.Enemy,character:FindFirstChildWhichIsA("Tool")) end end for _,v in workspace:GetChildren() do local character = localPlayer.Character if v:FindFirstChild("Enemy") and v.Enemy.Health > 0 and character:FindFirstChildWhichIsA("Tool") and (character.HumanoidRootPart.Position - v.Torso.Position).Magnitude < 25 then task.wait() game:GetService("ReplicatedStorage").GameRemotes.DamageEvent:FireServer(v.Torso,v.Enemy,character:FindFirstChildWhichIsA("Tool")) end end end)