egfw

udhhdhud

Sep 2nd, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.81 KB | None | 0 0
  1. getgenv().Autofarm = true -- set to false to disable
  2.  
  3. local folder = workspace["Job\227\133\164"].Box
  4. local plr = game:GetService("Players").LocalPlayer
  5. local char = plr.Character or plr.CharacterAdded:Wait()
  6.  
  7. local function reset()
  8.     folder.Job.CFrame = CFrame.new(-109.773857, 5.76414442, 146.092545, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  9.     folder.Job.Label.Enabled = true
  10. end
  11. while getgenv().Autofarm do
  12.     if not getgenv().Autofarm then
  13.         reset()
  14.         break else
  15.         if plr.Character ~= nil and char:FindFirstChild("Humanoid") and char:FindFirstChild("HumanoidRootPart") then
  16.  
  17.             local function GetBox()
  18.                 fireclickdetector(folder.BOX1.ClickDetector)
  19.                 task.wait(0.1)
  20.                 local tool = plr.Character:FindFirstChild("Box") or plr.Backpack:FindFirstChild("Box")
  21.                 if tool then
  22.                     plr.Character.Humanoid:EquipTool(tool)
  23.                 end
  24.             end
  25.            
  26.             local function Sell()
  27.                 if plr.Character ~= nil and plr.Character:FindFirstChild("HumanoidRootPart") then
  28.                     if syn then
  29.                         firetouchinterest(plr.Character.HumanoidRootPart, folder.Job, 0)
  30.                         wait()
  31.                         firetouchinterest(plr.Character.HumanoidRootPart, folder.Job, 1)
  32.                     end
  33.                 end
  34.             end
  35.             local tool = plr.Character:FindFirstChild("Box") or plr.Backpack:FindFirstChild("Box")
  36.             if tool then
  37.                 plr.Character.Humanoid:EquipTool(tool)
  38.                 Sell()
  39.             else
  40.                 GetBox()
  41.             end
  42.             folder.Job.CFrame = char.HumanoidRootPart.CFrame
  43.             folder.Job.Label.Enabled = false
  44.         end
  45.         task.wait()
  46.     end
  47. end
  48. reset()
Add Comment
Please, Sign In to add comment