SirSaber

Ilum 2 Ore Farm

Dec 29th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. _G.AutoMineFarm = true; -- Change to false to stop mining (Execute without the lower part of script.)
  2.  
  3. while wait() do
  4. if _G.AutoMineFarm then
  5.  
  6. local ores = game:GetService("Workspace").Ores.Agrinium:GetChildren() -- Change Ore to what ever ur trying to get.
  7. local LocalPlayer = game:GetService("Players").LocalPlayer
  8.  
  9. for i, child in ipairs(ores) do
  10. LocalPlayer.Character.HumanoidRootPart.CFrame = child.Rock.CFrame + Vector3.new(0, 10, 0)
  11.  
  12. for count = 1, 20 do
  13. -- Mining Laser Check
  14. local ToolOnPlayer = LocalPlayer.Character:FindFirstChildWhichIsA("BackpackItem")
  15.  
  16. if ToolOnPlayer and ToolOnPlayer.Name == "Mining Laser" then
  17. game:GetService("ReplicatedStorage").Mine:InvokeServer(child, LocalPlayer.Character["Mining Laser"].Client.Settings)
  18. else
  19. -- Force Equip Tool
  20. LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):EquipTool(LocalPlayer.Backpack["Mining Laser"])
  21. -- Then back to the loop.
  22. end
  23. end
  24. end
  25. end
  26. end
Add Comment
Please, Sign In to add comment