mining simulator 2 script 2022 local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))() local Window = Library.CreateLib("Mining Simulator 2", "DarkTheme") local Tab = Window:NewTab("Main") local Section = Tab:NewSection("Auto Mine") Section:NewToggle("ON-OFF", ".", function(state) if state then _G.On = true -- true = on / false = off -- main scripts below -- function breakblock(pos) local args = { mining simulator 2 script 2022 PasteShr mining simulator 2 script 2022 [1] = pos } game:GetService("ReplicatedStorage").Events.MineBlock:FireServer(unpack(args)) end local Mod = require(game:GetService("ReplicatedStorage").SharedModules.ChunkUtil) function getPartBelow() local Character = game.Players.LocalPlayer.Character local Foot = Character.RightFoot local RayOrigin = Foot.Position local RayDirection = Vector3.new(0, -1, 0) mining simulator 2 script 2022 How to use it? mining simulator 2 script 2022 local Params = RaycastParams.new() Params.FilterType = Enum.RaycastFilterType.Blacklist Params.FilterDescendantsInstances = {Character} local Result = workspace:Raycast(RayOrigin, RayDirection, Params) if Result then local RayInstance = Result.Instance print("Instance hit: " .. tostring(RayInstance)) return RayInstance end return nil mining simulator 2 script 2022 PasteShr mining simulator 2 script 2022 end while _G.On do task.wait() local closest = getPartBelow() if closest ~= nil then local Pos = closest.Position local NewPos = Mod.worldToCell(Pos) task.spawn( function() breakblock(NewPos) mining simulator 2 script 2022 How to get it? mining simulator 2 script 2022 end ) end end else _G.On = off -- true = on / false = off -- main scripts below -- function breakblock(pos) local args = { [1] = pos mining simulator 2 script 2022 How to dowload it? mining simulator 2 script 2022 } game:GetService("ReplicatedStorage").Events.MineBlock:FireServer(unpack(args)) end local Mod = require(game:GetService("ReplicatedStorage").SharedModules.ChunkUtil) function getPartBelow() local Character = game.Players.LocalPlayer.Character local Foot = Character.RightFoot local RayOrigin = Foot.Position local RayDirection = Vector3.new(0, -1, 0) local Params = RaycastParams.new() mining simulator 2 script 2022 How to use it? mining simulator 2 script 2022 Params.FilterType = Enum.RaycastFilterType.Blacklist Params.FilterDescendantsInstances = {Character} local Result = workspace:Raycast(RayOrigin, RayDirection, Params) if Result then local RayInstance = Result.Instance print("Instance hit: " .. tostring(RayInstance)) return RayInstance end return nil end mining simulator 2 script 2022 How to get it for free? mining simulator 2 script 2022 while _G.On do task.wait() local closest = getPartBelow() if closest ~= nil then local Pos = closest.Position local NewPos = Mod.worldToCell(Pos) task.spawn( function() breakblock(NewPos) end mining simulator 2 script 2022 How to get it for free? mining simulator 2 script 2022 ) end end end end) local Section = Tab:NewSection("Chest Finder") Section:NewButton("Click", ".", function() local _speed=100 -- lower if you are getting tp'd back (shouldn't happen) function tp(...) local plr=game.Players.LocalPlayer mining simulator 2 script 2022 PasteShr mining simulator 2 script 2022 local args={...} if typeof(args[1])=="number"and args[2]and args[3]then args=Vector3.new(args[1],args[2],args[3]) elseif typeof(args[1])=="Vector3" then args=args[1] elseif typeof(args[1])=="CFrame" then args=args[1].Position end local dist=(plr.Character.HumanoidRootPart.Position-args).Magnitude game:GetService("TweenService"):Create( mining simulator 2 script 2022 How to dowload it? mining simulator 2 script 2022 plr.Character.HumanoidRootPart, TweenInfo.new(dist/_speed,Enum.EasingStyle.Linear), {CFrame=CFrame.new(args)} ):Play() end for i,v in pairs(game:GetService("Workspace").Chests:GetChildren()) do if v.Name == "Legendary" then -- Change the name to "Wood", "Silver", "Gold", "Epic" or "Legendary" tp(game:GetService("Workspace").Chests.Legendary.Part.Position) -- Change The Path too to .Wood, .Silver, .Gold, .Epic or ,Legendary end end mining simulator 2 script 2022 How to get it? mining simulator 2 script 2022 end) mining simulator 2 script 2022