Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- https://web.roblox.com/games/7336477134/Minerscave
- --[[
- be cautious with this script and know which ore you can mine with your pickaxe
- sometimes the script will teleport you to a ore in lava, if it does then leave, you will be teleported to the surface when you rejoin
- i recommend you to use a diamond pickaxe for this script, but if you have a sapphire pickaxe use it, you can mostly get at least 1 stack (9) of diamonds every minute if you use the script correctly
- the script works as it teleports you to the ore you said to mine, and after you mine it the script will teleport you to the dropped ore and after you pick it up it cycles
- dont blame me if you die in lava
- ]]
- local prefix = "."
- local oldpos
- local oldpos1
- local oldpos2
- local inputore
- local endingnotification
- local plrchat
- local ended
- local plrchat2
- local autominebool
- function notification(title,text)
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = title,
- Text = text
- })
- end
- function mineblock(blockname,itemname,itemnameditem)
- for i1,v1 in pairs(game.Workspace.Blocks:GetChildren()) do
- for i,v in pairs(v1:GetChildren()) do
- if v.Name == blockname then
- oldpos1 = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
- local A_1 = (v.Position.X/3)
- local A_2 = (v.Position.Y/3)
- local A_3 = (v.Position.Z/3)
- local Event = game:GetService("ReplicatedStorage").GameRemotes.BreakBlock
- Event:FireServer(A_1, A_2, A_3)
- repeat wait() until v.Parent == nil
- local Event = game:GetService("ReplicatedStorage").GameRemotes.AcceptBreakBlock
- Event:InvokeServer()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldpos1
- end
- end
- end
- wait(.2)
- if itemnameditem == false then
- game.Workspace:WaitForChild("Part")
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.Name == "Part" and v:FindFirstChildWhichIsA("SurfaceGui") and v:FindFirstChildWhichIsA("SurfaceGui"):FindFirstChild(itemname) then
- oldpos2 = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
- repeat wait() until v.Parent == nil
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldpos2
- end
- end
- else
- game.Workspace:WaitForChild(itemname)
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.Name == itemname and v:FindFirstChildWhichIsA("SurfaceGui") then
- oldpos2 = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Position)
- repeat wait() until v.Parent == nil
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldpos2
- end
- end
- end
- end
- for i,v in pairs(game:GetService("ReplicatedStorage").GameRemotes:GetChildren()) do
- if v.Name == "Demo" then
- v:Destroy()
- end
- end
- print("fall damage deleted")
- rconsoleclear()
- rconsolename("Minerscave")
- rconsoleprint("@@LIGHT_BLUE@@")
- rconsoleprint("Prefix: "..prefix)
- rconsoleprint[[
- Commands:
- gomine - teleports you to a ore to mine and when your done with that ore it keeps doing it to other ores until you stop it (Available Args: stone, coal, steel/iron, gold, ruby, diamond, sapphire)
- stopgomine - stops go mine
- end (no prefix) - ends the script
- tip: if your in lava, just leave
- ]]
- plrchat = game.Players.LocalPlayer.Chatted:Connect(function(txt)
- if string.sub(txt,1,string.len(prefix)) == prefix then
- local cmd
- local input
- if string.find(txt," ") then
- cmd = string.sub(txt,string.len(prefix)+1,string.find(txt," ")-1)
- input = string.sub(txt,string.find(txt," ")+1)
- else
- cmd = string.sub(txt,string.len(prefix)+1)
- end
- if cmd == "gomine" and input ~= nil then
- autominebool = true
- notification("go mining turned on!","go mining turned on!")
- oldpos = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
- repeat
- wait()
- if string.find(input:lower(),"stone") then
- mineblock("Stone","Cobblestone",true)
- elseif string.find(input:lower(),"coal") then
- mineblock("CoalOre","coal",false)
- elseif string.find(input:lower(),"steel") or string.find(input:lower(),"iron") then
- mineblock("SteelOre","SteelOre",true)
- elseif string.find(input:lower(),"gold") then
- mineblock("GoldOre","GoldOre",true)
- elseif string.find(input:lower(),"ruby") then
- mineblock("RubyOre","RubyOre",true)
- elseif string.find(input:lower(),"diamond") then
- mineblock("DiamondOre","diamond",false)
- elseif string.find(input:lower(),"sapphire") then
- mineblock("SapphireOre","sapphireingot",false)
- end
- until autominebool == nil
- end
- if cmd == "stopgomine" then
- autominebool = nil
- notification("go mining turned off","go mining turned off")
- wait(.1)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldpos
- end
- end
- end)
- plrchat2 = game.Players.LocalPlayer.Chatted:Connect(function(txt)
- if string.sub(txt,1,3) == "end" then
- ended = true
- end
- end)
- print("chat systems loaded")
- repeat wait() until ended == true
- if ended == true then
- endingnotification = "Ended"
- if autominebool == true then
- automine:Disconnect()
- endingnotification = "dont worry guys we turned off go mining"
- end
- plrchat:Disconnect()
- plrchat2:Disconnect()
- notification(endingnotification,endingnotification)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement