Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - --[[
 - @ Scripted by Otaku
 - @ Fixed by Sploit
 - @ 4/28/2018
 - --]]
 - local plr = game.Players.LocalPlayer
 - local leaderstats = plr:WaitForChild("leaderstats")
 - local rebirthValue = ((leaderstats.Rebirths.Value + 1) * 10000000)
 - local coins = string.gsub(leaderstats.Coins.Value, ",", "") -- Coin error fix
 - local function NewRayMine(vectorValue)
 - local ray = Ray.new(
 - plr.Character.HumanoidRootPart.Position,
 - vectorValue
 - )
 - local ignore = {plr.Character}
 - local part, endPoint = workspace:FindPartOnRayWithIgnoreList(ray, ignore)
 - if part then
 - print(part)
 - for i = 1, 50 do
 - workspace.RemoteEvent:FireServer("MineBlock", part.Parent)
 - wait()
 - end
 - end
 - end
 - local pickPrices = {
 - [2] = 25,
 - [3] = 75,
 - [4] = 250,
 - [5] = 600,
 - [6] = 2000,
 - [7] = 6000,
 - [8] = 16500,
 - [9] = 32000,
 - [10] = 78000,
 - [11] = 120000,
 - [16] = 400000,
 - [17] = 520000,
 - [18] = 775000,
 - [19] = 1100000,
 - [20] = 2450000,
 - [21] = 2e9
 - }
 - local pick = 4
 - local buyingPick = true
 - local function buyPick()
 - if buyingPick then
 - if pickPrices[pick] < tonumber(coins) then
 - workspace.RemoteEvent:FireServer("BuyItem", "Tools", pick)
 - pick = pick + 1
 - buyingPick = false
 - end
 - elseif buyingPick ~= true then
 - if pick == 12 then
 - pick = 16
 - end
 - buyingPick = true
 - end
 - end
 - local function Sell()
 - local var = plr.Character.HumanoidRootPart.CFrame
 - plr.Character.HumanoidRootPart.CFrame = workspace.Activation.Sell.CFrame * CFrame.new(0,5,0)
 - wait(2)
 - plr.Character.HumanoidRootPart.CFrame = var
 - wait(5)
 - end
 - local function rebirthMine()
 - if tonumber(coins) < rebirthValue then
 - NewRayMine(Vector3.new(0, -5, 0))
 - NewRayMine(Vector3.new(5, 0, 0))
 - NewRayMine(Vector3.new(-5, 0, 0))
 - NewRayMine(Vector3.new(0, 0, 5))
 - NewRayMine(Vector3.new(0, 0, -5))
 - else
 - workspace.RemoteEvent:FireServer("Rebirth")
 - rebirthValue = ((leaderstats.Rebirths.Value + 1) * 10000000)
 - end
 - end
 - while wait() do
 - rebirthMine()
 - buyPick()
 - Sell()
 - end
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment