Advertisement
Guest User

Zombie Onslaught Autofarm by Lube!

a guest
Oct 14th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. local Credit = Instance.new("Message", workspace)
  2. Credit.Name = "creditzreee"
  3. Credit.Text = "The Zombie's Onslaught Money Farm by Lube#5220 on discord!"
  4. game:GetService("Debris"):AddItem(Credit, 5)
  5.  
  6. wait(1)
  7.  
  8. local MorphMode = false
  9. local Enabled = true
  10. local Debounce = true
  11. local DependantTable = {}
  12.  
  13. local function MainFunction()
  14. if not game.Players.LocalPlayer.Character then return end
  15. if not game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
  16. for i,v in pairs(workspace:GetDescendants()) do
  17. if v.Name == "Coin" or (v.Name == "Chest" and not MorphMode) then
  18. v.CanCollide = false
  19. v.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  20. end
  21. end
  22. end
  23.  
  24. if Enabled then
  25. game:GetService("RunService"):BindToRenderStep("AutoFarmMain", Enum.RenderPriority.Camera.Value - 1, MainFunction)
  26. end
  27.  
  28. game:GetService("UserInputService").InputBegan:Connect(function(input, onGui)
  29. if onGui or not Debounce then return end
  30. local KeyCodeRecognized = false
  31. if input.KeyCode == Enum.KeyCode.Z then
  32. Debounce = false
  33. KeyCodeRecognized = true
  34. MorphMode = not MorphMode
  35. local NewMsg = Instance.new("Message", workspace)
  36. NewMsg.Name = "lolFuckYouSuperEvilAzmil"
  37. if MorphMode then
  38. NewMsg.Text = "Morph Mode Turned On"
  39. else NewMsg.Text = "Morph Mode Turned Off"
  40. end
  41. game:GetService("Debris"):AddItem(NewMsg, 1)
  42. elseif input.KeyCode == Enum.KeyCode.X then
  43. Debounce = false
  44. KeyCodeRecognized = true
  45. Enabled = not Enabled
  46. local NewMsg = Instance.new("Message", workspace)
  47. NewMsg.Name = "lolFuckYouSuperEvilAzmil"
  48. if Enabled then
  49. game:GetService("RunService"):BindToRenderStep("AutoFarmMain", Enum.RenderPriority.Camera.Value - 1, MainFunction)
  50. NewMsg.Text = "Auto Farm Turned On"
  51. else
  52. game:GetService("RunService"):UnbindFromRenderStep("AutoFarmMain")
  53. NewMsg.Text = "Auto Farm Turned Off"
  54. for i,v in pairs(workspace:GetDescendants()) do
  55. if v.Name == "Coin" or v.Name == "Chest" then
  56. v.CanCollide = true
  57. end
  58. end
  59. for i,v in pairs(DependantTable) do
  60. v = true
  61. end
  62. end
  63. game:GetService("Debris"):AddItem(NewMsg, 1)
  64. end
  65. delay(.5, function()
  66. if not Debounce and KeyCodeRecognized then
  67. Debounce = true
  68. end
  69. end)
  70. end)
  71.  
  72. print("Auto Farm by Lube#5220 loaded.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement