Run it
Copy the script and paste it into your executor.
-- variables
local run_service = game:GetService("RunService");
local players = game:GetService("Players");
local local_player = players.LocalPlayer;
-- script variables
local remote;
-- functions
local kill_player = function(player_humanoid)
-- print("Killed:", player_humanoid.DisplayName);
remote:InvokeServer(player_humanoid, math.huge);
end;
local start_mafia_boss = function(player)
if (player == local_player or not local_player.Character) then
return;
end;
(, player);
npc_mode = player.Parent.Name == ;
.(()
.()
( remote)
;
;
player_character = npc_mode player player.Character;
( player_character)
;
;
humanoid = player_character:();
( humanoid)
;
;
(humanoid);
;
);
;
remote = local_player.Character local_player.Character.Weapons.Primary.Gun.GunScript.DealDamage;
_,v players:()
(v);
;
players.PlayerAdded:(start_mafia_boss);
_,v .Map.Civilians:()
(v);
;
.Map.Civilians.ChildAdded:(start_mafia_boss);
local_player.CharacterAdded:((v)
.() v:();
remote = v.Weapons.Primary.Gun.GunScript.DealDamage;
);Just a simple Kill All Players / Civilians. Open Source for learning purposes.