Bebedi

autopumpkin

Oct 19th, 2022 (edited)
3,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.43 KB | None | 0 0
  1. getgenv().apumpkin = false
  2. getgenv().apumpkin2 = false
  3.  
  4. function apumpkin()
  5.     spawn(function()
  6.         while getgenv().apumpkin do
  7.             for _,v in pairs(game:GetService("Workspace").Zones.Halloween.Drops:GetDescendants()) do
  8.                 if v.Name == "TouchInterest" then
  9.                     wait(0.1)
  10.                     if not getgenv().apumpkin then break end
  11.                     local success, errorMessage = pcall(function()
  12.                         firetouchinterest(v.Parent, game.Players.LocalPlayer.Character.HumanoidRootPart, 0)
  13.                     end)
  14.                     if not success then
  15.                         break
  16.                     end
  17.                 end
  18.             end
  19.         end
  20.     end)
  21. end
  22.  
  23. function apumpkin2()
  24.     spawn(function()
  25.         while getgenv().apumpkin2 do
  26.             for _,v in pairs(game:GetService("Workspace").Zones.Halloween.Drops:GetDescendants()) do
  27.                 if v.Name == "TouchInterest" and v.Parent and v.Parent.Position then
  28.                     wait(0.1)
  29.                     if not getgenv().apumpkin2 then break end
  30.                     local success, errorMessage = pcall(function()
  31.                         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Parent.Position)
  32.                     end)
  33.                     if not success then
  34.                         break
  35.                     end
  36.                 end
  37.             end
  38.         end
  39.     end)
  40. end
  41.  
  42.  
  43. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  44. local Window = Library.CreateLib("Auto Pumpkin", "Ocean")
  45.  
  46. local Farming = Window:NewTab("Main")
  47. local Credits = Window:NewTab("Credits")
  48. local AutoFarm = Farming:NewSection("Main")
  49. local Credit = Credits:NewSection("Credit:")
  50. local Discord = Credits:NewSection("Discord")
  51.  
  52. AutoFarm:NewToggle("Auto Collect Pumpkin", "Auto Collect pumpkins", function(bool)
  53.     getgenv().apumpkin = bool
  54.     if bool then
  55.         apumpkin()
  56.     end
  57. end)
  58.  
  59. AutoFarm:NewToggle("Auto Collect Pumpkin (TELEPORT)", "Auto Collect pumpkins with teleport. Might work better than the other one", function(bool)
  60.     getgenv().apumpkin2 = bool
  61.     if bool then
  62.         apumpkin2()
  63.     end
  64. end)
  65.  
  66. Credit:NewLabel("Made By Bebedi#9960")
  67.  
  68. Discord:NewButton("Copy Discord Link", "Copy the Arcane Discord URL", function()
  69.         setclipboard("https://discord.gg/ArKmNgwXHV")
  70.    end)
Advertisement
Add Comment
Please, Sign In to add comment