Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. --[[
  2. This script is intended to assist with the game instead of fully botting it.
  3. This is designed to be used with a pistol
  4. It functions by slowly killing random zombies
  5. As you progress, turn the speed up (tap E) to kill off zombies more quickly
  6. Z - Enable / Disable
  7. E - Speed up zombie Slaughter by 25%
  8. Q - Slow down zombie Slaughter by 25%
  9. C - Kill zombies as quickly as possible (Great for when you are in trouble)
  10. U - Unload this script
  11.  
  12. Donations appreciated!
  13. BTC 13qtf51WjYcBh21w1vJnd3BetJrzNmHEsc
  14. ]]--
  15.  
  16. local delay = 1
  17. local running = false
  18. local sentMessage = false
  19. local player = game.Players.LocalPlayer
  20. local SuperSpeed = false
  21.  
  22. -- Preloading the function names because there were some nil issues
  23. local tzrKeyDown
  24. local tzrKeyUp
  25. local tzr
  26. local unloadAll
  27. local DeadFunc
  28. local tzrWhile
  29. local NotifyUser
  30.  
  31. NotifyUser = function(theMessage)
  32. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  33. Text = theMessage;
  34. Color = Color3.new(0, 0, 1);
  35. })
  36. end
  37.  
  38. DeadFunc = function() end
  39.  
  40. tzrKeyDown = function(inputobject)
  41. if inputobject.KeyCode == Enum.KeyCode.Q then
  42. delay = delay * 1.25
  43. if delay > 5 then delay = 5 end
  44. NotifyUser(tostring(math.floor((1/delay)*100)/100) .. " random zombie kills per second")
  45. elseif inputobject.KeyCode == Enum.KeyCode.E then
  46. delay = delay / 1.25
  47. if delay < 0.001 then delay = 0.001 end
  48. NotifyUser(tostring(math.floor((1/delay)*100)/100) .. " random zombie kills per second")
  49. elseif inputobject.KeyCode == Enum.KeyCode.C then
  50. SuperSpeed = true
  51. NotifyUser("SUPERSPEED")
  52. elseif inputobject.KeyCode == Enum.KeyCode.Z then
  53. if running then
  54. running = false
  55. NotifyUser("TZR Disabled")
  56. else
  57. running = true
  58. NotifyUser("TZR Enabled")
  59. end
  60. tzrWhile()
  61. elseif inputobject.KeyCode == Enum.KeyCode.U then
  62. pcall(unloadAll)
  63. end
  64. end
  65.  
  66. tzrKeyUp = function(inputobject)
  67. if inputobject.KeyCode == Enum.KeyCode.C then
  68. SuperSpeed = false
  69. NotifyUser("SUPERSPEED OFF")
  70. end
  71. end
  72.  
  73. tzr = function()
  74. local zombies = game.Workspace['Zombie Storage']:GetChildren();
  75. for i,zombie in pairs(game.Workspace['Zombie Storage']:GetChildren()) do
  76. if SuperSpeed == false then zombie = zombies[math.random(#zombies)] end
  77. local weaponName = player.EquipStorage.Primary.Value
  78. local weapon
  79. if player.Backpack:FindFirstChild(weaponName) then
  80. weapon = player.Backpack:FindFirstChild(weaponName)
  81. elseif player.Character:FindFirstChild(weaponName) then
  82. weapon = player.Character:FindFirstChild(weaponName)
  83. else
  84. weapon = nil
  85. end
  86. if weapon then
  87. local humanoid = zombie:FindFirstChild('Humanoid')
  88. if humanoid then
  89. spawn(function()
  90. for i=1,10 do
  91. weapon.GunController.RemoteFunction:InvokeServer({['Name'] = weapon.Name, ['HumanoidTables'] = {{['HeadHits'] = 1, ['THumanoid'] = humanoid, ['BodyHits'] = 0}}})
  92. end
  93. end)
  94. end
  95. end
  96. if SuperSpeed == false then return end
  97. end
  98. end
  99.  
  100. tzrWhile = function()
  101. while running == true do
  102. pcall(tzr)
  103. if SuperSpeed then
  104. wait(0.00001)
  105. else
  106. wait(math.floor(delay*100)/100)
  107. end
  108. end
  109. end
  110.  
  111. unloadAll = function()
  112. running = false
  113. tzrKeyUp = DeadFunc
  114. tzrKeyDown = DeadFunc
  115. tzr = DeadFunc
  116. unloadAll = DeadFunc
  117. NotifyUser("TZR unloaded")
  118. NotifyUser = DeadFunc
  119. end
  120. game:GetService("UserInputService").InputBegan:Connect(function(inputobject) tzrKeyDown(inputobject) end)
  121. game:GetService("UserInputService").InputEnded:Connect(function(inputobject) tzrKeyUp(inputobject) end)
  122. NotifyUser("TZR Loaded, Press Z to enable")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement