get paid to paste

Pilgrammed Script | AUTO ORE MINE

--keep in mind certains ores require certain pickaxes
_G.toggle =true
local pick = "Old Pickaxe"--[[
Iron Pickaxe
Old Pickaxe
Bronze Pickaxe
Gemstone Pickaxe
]]
local cavedir = workspace.Ores.PrairieCave--[[change this for different farming locations
ColdCliff
Underground
WestCliffside
BearIsland
ForestCave
Savanna
EggIsland
BlackenedCove
Prairie
MountainOutpost
PrairieCave
PrairieCave
MountainCave
DeepDesertCave
DeepDesert
VolcanoQuarry
MountainUpper
MountainLower
Desert
]]
local workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local LocalP = Players.LocalPlayer
local Character = LocalP.Character or LocalP.CharacterAdded:Wait()
local RootPart = Character:FindFirstChild("HumanoidRootPart")



local function run()
    while wait() do
        if _G.toggle then
            game:GetService("Players").LocalPlayer.Character.Humanoid.Died:connect(function()
                wait(7)
            end
)
            for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
                if v.name == pick then
                    v.Parent = game.Players.LocalPlayer.Character
            end
            end
            wait(0.2)
            local LocalP = Players.LocalPlayer
            local Character = LocalP.Character or LocalP.CharacterAdded:Wait()
            local RootPart = Character:FindFirstChild("HumanoidRootPart")
            local ores = cavedir:GetChildren()
            local currentore = ores[1]
            local current = currentore.Part
            local CFrameLocation = CFrame.new(current.CFrame.x, current.CFrame.y, current.CFrame.z + 7)            
            RootPart.CFrame = CFrameLocation
            RootPart.Parent = Character
            wait(0.01)
        
            local args = {
                [1] = 1
            }

            game:GetService("Players").LocalPlayer.Character:FindFirstChild(pick).Slash:FireServer(unpack(args))
            while wait() do
                if _G.toggle then
                    wait()
                    local ores = cavedir:GetChildren()
                    local currentore = ores[1]
                    local current = currentore.Part
                    local CFrameLocation = CFrame.new(current.CFrame.x, current.CFrame.y, current.CFrame.z + 7)            
                    RootPart.CFrame = CFrameLocation
                    RootPart.Parent = Character
                    wait(0.01)
        
                    local args = {
                        [1] = 1
                    }

                    game:GetService("Players").LocalPlayer.Character:FindFirstChild(pick).Slash:FireServer(unpack(args))
                else
                    break
                end
                end
            end
            end
        end


while _G.toggle do
    pcall(run)
end

Pasted: Feb 13, 2023, 2:15:59 am
Views: 8