UMG script
Key Required

UMG script

untitled mining gamevxstyvxsty 20.8K views 75 executesUpdated Aug 17, 2023
0.8/ 5(20 votes)
31715% Positive
Lua Script•82 lines (2659 chars)
if game.PlaceId == 12004891930 then
 canContinue = true
end

repeat task.wait() until canContinue

local ignoresLayers, plr, layers, autofarm, mined, files, tpb = false, workspace:WaitForChild("Debris"):WaitForChild(game:GetService("Players").LocalPlayer.Name),  {
    "barrier",
    "the void.",
    "inner core",
    "outer core",
    "stone",
    "marble",
    "clay",
    "mantle",
    "obsidian"
}, false, "Mined Blocks: \n", 1, false

local function mine(block)
if tpb then
     plr.HumanoidRootPart.CFrame = block.CFrame
     end
     workspace.Debris[plr.Name].Pickaxe.ApplyTarget:InvokeServer(block,block.CFrame)
     workspace.Debris[plr.Name].Pickaxe.Activation:FireServer(true)
end

local Library = loadstring(game:HttpGet("https://pastebin.com/raw/vff1bQ9F"))()

local Window = Library.CreateLib(game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name.." GUI", "Serpent")

local Main = Window:NewTab("Main")

local MainSection = Main:NewSection("Auto Farm")

local AutoFarm = MainSection:NewToggle("Auto Mine", "Auto dig blocks.", function()
    autofarm = not autofarm
end)

local IgnoreLayers = MainSection:NewToggle("Ignore layers", "Ignore layer-tier blocks.", function()
    ignoreLayers = not ignoreLayers
end)
local TpB = MainSection:NewToggle("Teleport to blocks", "Teleport to blocks while auto mining.", function()
    tpb = not tpb
end)
local S = MainSection:NewButton("Save mined blocks", "Saves all mined blocks into a file named UTM-Mined", function()
    if not isfolder("UTM") then 
      makefolder("UTM")
      writefile("UTM/UTM-Mined", mined)
    else
      for _, file in listfiles("UTM") do
        if not file == nil then
          files+=1
        end
      end
      local path = "UTM/UTM-Mined #"..files
      writefile(path, mined)
    end
end)

game:GetService("RunService").RenderStepped:Connect(function()
    task.wait()
    if autofarm then
      for _, block in pairs(workspace:WaitForChild("Mine"):GetChildren()) do
        if ignoreLayers and not table.find(layers, block.Name:lower()) then
            mine(block)
            mined = mined.."\n"..block.Name
          elseif not ignoreLayers and table.find(layers, block.Name:lower()) then
            mine(block)
            mined = mined.."\n"..block.Name
          end
      end
      workspace:FindFirstChild("Mine").ChildAdded:Connect(function(block)
          if ignoreLayers and not table.find(layers, block.Name:lower()) then
            mine(block)
            mined = mined.."\n"..block.Name
          elseif not ignoreLayers then
            mine(block)
            mined = mined.."\n"..block.Name
          end
        end)
end
end)

Features & Information

• Automine blocks • Teleport to blocks • Save mined blocks • Choose whether to ignore or mine layer tier blocks
#umg

Community Comments (5)

jcobjcobAug 18, 2023(edited)

How does this work, dont seems to run for me when executed

vxstyvxstyAug 18, 2023(edited)

@jerrycoffan are you running it on the game untitled mining game? if yes then check console and lmk if you get any errors or warnings also what executor are you using

jcobjcobAug 18, 2023(edited)

yes i was running on the game untitled mining game, executor i am currently using is electron, the counter i got in console was the uh some thing abt createlib line 32 i think @vxsty

vxstyvxstyAug 18, 2023(edited)

@jerrycoffan I don't see any errors at all besides you executor may not be supporting kavo ui?

jcobjcobAug 20, 2023(edited)

idrk, but yeah the gui doesnt pop up for me, im using electron atm