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);
end
Comments
Does it just kill or also make bodies unreportable