-- you must hold any tool for this to work
getgenv().kill_all = not getgenv().kill_all;
if (getgenv().kill_all) then
repeat
local tool = game:GetService("Players").LocalPlayer.Character:FindFirstChildWhichIsA("Tool");
local children = game:GetService("Workspace").Police:GetChildren();
if (#children > 0) and (tool) then
for _, guard in (children) do
local humanoid = guard:FindFirstChildWhichIsA("Humanoid");
local head = guard:FindFirstChild("Head");
if (not head) or (not humanoid) or (humanoid.Health == 0) then
continue;
end
game:GetService("ReplicatedStorage").RS_Package.Assets.Remotes.Damage:FireServer("Damage", tool, humanoid, humanoid.Health, head, tool.Name, head.Position, {});
end
end
task.wait();
until (not getgenv().kill_all);
endEliminate all guards instantly with this open source script. Works in real time while holding any tool and completely disables NPC behavior, making them unable to shoot, react, or escape. Simple execution, no UI, no unnecessary loops.
1-- you must hold any tool for this to work
2getgenv().kill_all = not getgenv().kill_all;
3
4if (getgenv().kill_all) then
5 repeat
6 local tool = game:GetService("Players").LocalPlayer.Character:FindFirstChildWhichIsA("Tool");
7 local children = game:GetService("Workspace").Police:GetChildren();
8 if (#children > 0) and (tool) then
9 for _, guard in (children) do
10 local humanoid = guard:FindFirstChildWhichIsA("Humanoid");
11 local head = guard:FindFirstChild("Head");
12 if (not head) or (not humanoid) or (humanoid.Health == 0) then
13 continue;
14 end
15 game:GetService("ReplicatedStorage").RS_Package.Assets.Remotes.Damage:FireServer("Damage", tool, humanoid, humanoid.Health, head, tool.Name, head.Position, {});
16 end
17 end
18 task.wait();
19 until (not getgenv().kill_all);
20end