1. -- INSTRUCTIONS FOR REx: Reincarnated SILENT AUTOFARM by 90467
  2. -- 1. Press F9 and DISABLE "Error", "Warning", and "Information". This is to see script output. Drag the scrollbar all the way down with your mouse to make it autoscroll.
  3. -- 2. Make sure you have your pickaxe equipped while the script is running.
  4. -- 3. You can tweak the excludedOres list to however you like. Personally I think it's good like this
  5. -- 4. Make sure to serverwhop every now and then to avoid bans.
  6. local delay = 0.2 -- Delay between mining each block. Higher = less suspicious, lower = more suspicious. Keep it above 0.1
  7. if game.PlaceId ==8549934015 then -- Normal World
  8. excludedOres = {"Magma", "Stone", "Basalt", "Copper", "Diorite", "Coal", "Crystallized Stone", "Nickel", "Bedrock", "Gold", "Granite", "Iron", "Marble", "Etherstone", "Prismatistone","Silver","Obsidian","Ice","Voidstone","Ruby","Celestone","Mantle","Goldstone","Barrier","Quartz","Reflectistone"}
  9. else
  10. if game.PlaceId ==10129505074 then -- Moon World
  11. excludedOres = {"Moon Stone", "Tin", "Moon Mantle", "Jasper", "Aluminum", "Moon Core", "Zinc", "Coal", "Magma", "Copper", "Titanium", "Legacy Uranium", "Lithium", "Nickel", "Quartz", "Gold", "Tourmaline","Jade","Silver","Lapis Lazuli","Bismuth","Nebula","Strontium","Scandium","Platinum","Amethyst","Barrier","Garnet","Cobalt","Emerald","Heliodor","Aquamarine","Topaz","Diamond","Beryllium","Morganite","Ruby","Rocc","Moonrock","nil"}
  12. end
  13. end
  14. -- Don't edit below unless you know what you're doing.
  15. local folder = game:GetService("Workspace").Mine
  16. local function isValidName(name)
  17. for _, validName in pairs(excludedOres) do
  18. if name == validName then
  19. return true
  20. end
  21. end
  22. return false
  23. end
  24. local toMine = {}
  25. local function isOreExcluded(part)
  26. if part:IsA("BasePart") and not isValidName(part.Name) then
  27. table.insert(toMine, part)
  28. end
  29. end
  30. for _, part in pairs(folder:GetChildren()) do
  31. isOreExcluded(part)
  32. end
  33. folder.ChildAdded:Connect(isOreExcluded)
  34. local Target = game:GetService("ReplicatedStorage").MineEvent;
  35. local function fireMineEvent()
  36. while #toMine > 0 do
  37. for i = #toMine, 1, -1 do
  38. local partToMine = toMine[i]
  39. if partToMine:IsDescendantOf(game.Workspace) then
  40. print("You mined a:",partToMine.Name,"| Ores left to mine:",#toMine)
  41. Target:FireServer(partToMine);
  42. wait(delay)
  43. table.remove(toMine, i)
  44. else
  45. print("Someone else mined a:",partToMine.Name,"| Ores left to mine:",#toMine)
  46. table.remove(toMine, i)
  47. end
  48. end
  49. end
  50. print("Finished. Restarting...")
  51. wait(2)
  52. fireMineEvent()
  53. end
  54. fireMineEvent()