1. getgenv().AutoFarm = true
  2. local LocalPlayer = game:GetService("Players").LocalPlayer
  3. while getgenv().AutoFarm do
  4. pcall(function()
  5. for _, v in pairs(workspace.Hoops:GetChildren()) do -- > Hoops folder
  6. v.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame -- > Teleports the Hoop to your character.
  7. end
  8. for _, v in pairs(workspace.orbFolder:GetDescendants()) do -- > Orbs + Gems folder
  9. if (v.Name == "outerOrb" or v.Name == "outerGem") then
  10. v.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame -- > Teleports the Gem / Orb to your character.
  11. end
  12. end
  13. wait()
  14. end)
  15. end