Advertisement
Urbanpower

Pilgrammed Script | AUTO ORE MINE

Feb 17th, 2023
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. --keep in mind certains ores require certain pickaxes
  2. _G.toggle =true
  3. local pick = "Old Pickaxe"--[[
  4. Iron Pickaxe
  5. Old Pickaxe
  6. Bronze Pickaxe
  7. Gemstone Pickaxe
  8. ]]
  9. local cavedir = workspace.Ores.PrairieCave--[[change this for different farming locations
  10. ColdCliff
  11. Underground
  12. WestCliffside
  13. BearIsland
  14. ForestCave
  15. Savanna
  16. EggIsland
  17. BlackenedCove
  18. Prairie
  19. MountainOutpost
  20. PrairieCave
  21. PrairieCave
  22. MountainCave
  23. DeepDesertCave
  24. DeepDesert
  25. VolcanoQuarry
  26. MountainUpper
  27. MountainLower
  28. Desert
  29. ]]
  30. local workspace = game:GetService("Workspace")
  31. local Players = game:GetService("Players")
  32. local LocalP = Players.LocalPlayer
  33. local Character = LocalP.Character or LocalP.CharacterAdded:Wait()
  34. local RootPart = Character:FindFirstChild("HumanoidRootPart")
  35.  
  36.  
  37.  
  38. local function run()
  39. while wait() do
  40. if _G.toggle then
  41. game:GetService("Players").LocalPlayer.Character.Humanoid.Died:connect(function()
  42. wait(7)
  43. end
  44. )
  45. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  46. if v.name == pick then
  47. v.Parent = game.Players.LocalPlayer.Character
  48. end
  49. end
  50. wait(0.2)
  51. local LocalP = Players.LocalPlayer
  52. local Character = LocalP.Character or LocalP.CharacterAdded:Wait()
  53. local RootPart = Character:FindFirstChild("HumanoidRootPart")
  54. local ores = cavedir:GetChildren()
  55. local currentore = ores[1]
  56. local current = currentore.Part
  57. local CFrameLocation = CFrame.new(current.CFrame.x, current.CFrame.y, current.CFrame.z + 7)
  58. RootPart.CFrame = CFrameLocation
  59. RootPart.Parent = Character
  60. wait(0.01)
  61.  
  62. local args = {
  63. [1] = 1
  64. }
  65.  
  66. game:GetService("Players").LocalPlayer.Character:FindFirstChild(pick).Slash:FireServer(unpack(args))
  67. while wait() do
  68. if _G.toggle then
  69. wait()
  70. local ores = cavedir:GetChildren()
  71. local currentore = ores[1]
  72. local current = currentore.Part
  73. local CFrameLocation = CFrame.new(current.CFrame.x, current.CFrame.y, current.CFrame.z + 7)
  74. RootPart.CFrame = CFrameLocation
  75. RootPart.Parent = Character
  76. wait(0.01)
  77.  
  78. local args = {
  79. [1] = 1
  80. }
  81.  
  82. game:GetService("Players").LocalPlayer.Character:FindFirstChild(pick).Slash:FireServer(unpack(args))
  83. else
  84. break
  85. end
  86. end
  87. end
  88. end
  89. end
  90.  
  91.  
  92. while _G.toggle do
  93. pcall(run)
  94. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement