Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.AutoMineFarm = true; -- Change to false to stop mining (Execute without the lower part of script.)
- while wait() do
- if _G.AutoMineFarm then
- local ores = game:GetService("Workspace").Ores.Agrinium:GetChildren() -- Change Ore to what ever ur trying to get.
- local LocalPlayer = game:GetService("Players").LocalPlayer
- for i, child in ipairs(ores) do
- LocalPlayer.Character.HumanoidRootPart.CFrame = child.Rock.CFrame + Vector3.new(0, 10, 0)
- for count = 1, 20 do
- -- Mining Laser Check
- local ToolOnPlayer = LocalPlayer.Character:FindFirstChildWhichIsA("BackpackItem")
- if ToolOnPlayer and ToolOnPlayer.Name == "Mining Laser" then
- game:GetService("ReplicatedStorage").Mine:InvokeServer(child, LocalPlayer.Character["Mining Laser"].Client.Settings)
- else
- -- Force Equip Tool
- LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):EquipTool(LocalPlayer.Backpack["Mining Laser"])
- -- Then back to the loop.
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment