Advertisement
pa1nx9

Build And Survive AUTO FARM

Sep 15th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. getgenv().KillAllMobs = false
  2. getgenv().CollectDrops = false
  3.  
  4. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  5.  
  6. local w = library:CreateWindow("Build and survive") -- Creates the window
  7.  
  8. local b = w:CreateFolder("AutoFarming") -- Creates the folder(U will put here your buttons,etc)
  9.  
  10. b:Toggle("Collect Mob Drops",function(bool)
  11. getgenv().CollectDrops = bool
  12. if bool then
  13. Drops()
  14. end
  15. end)
  16.  
  17.  
  18. b:Toggle("Kill All Mobs",function(bool)
  19. getgenv().KillAllMobs = bool
  20. if bool then
  21. Kills()
  22. end
  23. end)
  24.  
  25.  
  26.  
  27. b:ColorPicker("ColorPicker",Color3.fromRGB(255,0,0),function(color) --Default color
  28. print(color)
  29. end)
  30.  
  31.  
  32. b:DestroyGui()
  33.  
  34. function Kills()
  35. spawn(function()
  36. while KillAllMobs == true do wait(20)
  37.  
  38. for i,v in pairs(game:GetService("Workspace")["__THINGS"].Monsters:GetChildren()) do
  39.  
  40. local ohTable1 = {
  41. [1] = {
  42. [1] = {
  43. [1] = {
  44. [1] = v,
  45. [2] = 99999
  46. }
  47. }
  48. },
  49. [2] = {
  50. [1] = false
  51. }
  52. }
  53.  
  54. workspace.__THINGS.__REMOTES.mobdodamage:FireServer(ohTable1)
  55. end
  56. end
  57. end)
  58. end
  59.  
  60. function Drops()
  61. spawn(function()
  62. while CollectDrops == true do wait(2)
  63. for i,v in pairs(game:GetService("Workspace")["__DEBRIS"].MonsterDrops:GetChildren()) do
  64. v.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  65. end
  66. end
  67. end)
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement