Roblox Zombie Tycoon Kill All Script

Roblox Zombie Tycoon Kill All Script

Script by Ohgodmanyo

function zombiekillall()
   for _, zombie in pairs(workspace.Zombies.Zombies:GetChildren()) do
       local ohInstance1 = zombie.Humanoid
       local ohInstance2 = zombie.HumanoidRootPart
       local ohNumber3 = 9999
       local ohVector34 = Vector3.new(-0.110835828, -0.987258732, -0.114174083)
       local ohNumber5 = 0
       local ohNumber6 = 0
       local ohBoolean7 = false
       
       workspace.ohgodspamyo.Kolibri.GunScript_Server.InflictTarget:FireServer(ohInstance1, ohInstance2, ohNumber3, ohVector34, ohNumber5, ohNumber6, ohBoolean7)
   end
end

function playerskillall()
   local Players = game:GetService("Players")
   
   for _, player in pairs(game.Players:GetChildren()) do
       if player.Name == "ohgodspamyo" then
           print("Skipped")
       else
           print(player)
           local ohInstance1 = player.character.Humanoid
           local ohInstance2 = player.character.HumanoidRootPart
           local ohNumber3 = 9999
           local ohVector34 = Vector3.new(0.334446281, -0.642758667, 0.689207554)
           local ohNumber5 = 0
           local ohNumber6 = 0
           local ohBoolean7 = false
           
           workspace.ohgodspamyo.Kolibri.GunScript_Server.InflictTarget:FireServer(ohInstance1, ohInstance2, ohNumber3, ohVector34, ohNumber5, ohNumber6, ohBoolean7)
       end
   end
end

local UserInputService = game:GetService("UserInputService")
local eKey = Enum.KeyCode.E
local fKey = Enum.KeyCode.F

function isEDown()
   return UserInputService:IsKeyDown(eKey)
end

function isFDown()
   return UserInputService:IsKeyDown(fKey)
end

function Input(input, gameProcessedEvent)
   if isEDown() then
       zombiekillall()
       wait(2)
   elseif isFDown() then
       playerskillall()
       wait(2)
   end
end

UserInputService.InputBegan:Connect(Input)
%d bloggers like this: