brianops1

Dig It!

Sep 3rd, 2020 (edited)
1,395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.20 KB | None | 0 0
  1. --LoadString:
  2. --loadstring(game:HttpGet("https://pastebin.com/raw/qu5nUSvA",true))()
  3.  
  4. --Game: https://www.roblox.com/games/5344707538/NEW-BIOMES-Dig-It
  5.  
  6. --https://detourious.gitbook.io/project-finity/docs
  7. if game:GetService("CoreGui"):FindFirstChild("FinityUI") then
  8.     game.CoreGui.FinityUI:Destroy()
  9. end
  10. local desc = [[
  11. May not work super well on rebirth stages
  12. ]]
  13. local plr = game.Players.LocalPlayer
  14. local Finity = loadstring(game:HttpGet("http://finity.vip/scripts/finity_lib.lua"))()
  15. local FinityWindow = Finity.new(true)
  16. FinityWindow.ChangeToggleKey(Enum.KeyCode.Semicolon)
  17. local CreditsCategory = FinityWindow:Category("Credits/Info")
  18. local CreditsCreator = CreditsCategory:Sector("Finity Library Creator:")
  19. local ScriptCredit = CreditsCategory:Sector("Cheat Credit:")
  20. local Description = CreditsCategory:Sector("Description:")
  21. local OC = CreditsCategory:Sector("Open Close Button:")
  22. CreditsCreator:Cheat("Label", "detourious @ v3rmillion.net")
  23. ScriptCredit:Cheat("Label", "brianops16 @ v3rmillion.net")
  24. Description:Cheat("Label", desc)
  25. local Cheats = FinityWindow:Category("Cheats")
  26. local S1 = Cheats:Sector("Main Cheats")
  27. local S2 = Cheats:Sector("Cheat Settings")
  28. local EnumKeys = {'Semicolon','Tab','Equals','Comma','Minus','Period','F1',"F2","F3","F4",'F5',"F6","F7",
  29. "F8","F9","F10","F11","F12",'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', 'D', 'F', 'G', 'H',
  30.  'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M','Slash','One','Two','Three',"Four","Five","Six","Seven","Eight",
  31.  "Nine","Zero",'BackSlash','RightBracket','LeftBracket'}
  32. OC:Cheat("Dropdown", "(Default ';')", function(Option) --Dropdowns
  33.   print('Current key: '..Option)
  34.     FinityWindow.ChangeToggleKey(Enum.KeyCode[Option])
  35. end, {
  36.     options = EnumKeys
  37. })
  38.  
  39. local NormalBlocks = {
  40.     ["Starter"] = {"Dirt","Gravel","Stone"},
  41.     ["Snow"] = {"Snow","Ice","Permafrost"},
  42.     ["Sand"] = {"Sand","Silt","Sandstone"},
  43.     ["Lava"] = {"Ash","Basalt","Obsidian"},
  44.     ["Candy"] = {"CottonCandy","RockCandy","Sugar"},
  45.     ["Moon"] = {"LunarSoil","LunarRock","LunarCrust"},
  46.     ["Mars"] = {"MartianSoil","MartianRock","MartianCrust"},
  47.     ["Crystal"] = {"Clay","DeepStone","DeepGranite"},
  48. }
  49.  
  50. local MineDistance = 25
  51. local Normals = false
  52. local Specials = false
  53. local Percent = 80
  54. local Type = "All Around"
  55. local Changed = false
  56. local Biome = "Starter"
  57. local EventCache = game:GetService("Players")["LocalPlayer"]["PlayerScripts"]["ClientPackage"]["Installer"]["EventCache"]
  58.  
  59. function Mine(obj)
  60.     local string_1 = "Server";
  61.     local string_2 = "MineBlock";
  62.     local table_1 = {
  63.         [1] = obj.Position.X..'|'..obj.Position.Y..'|'..obj.Position.Z
  64.     };
  65.     local Target = game:GetService("NetworkClient")[""]
  66.     Target:InvokeServer(string_1, string_2, table_1);
  67. end
  68.  
  69. function BiomeCheck()
  70.     coroutine.resume(coroutine.create(function()
  71.         while _G.on == 1 do
  72.             pcall(function()
  73.                 local CurrentPosition = plr.Character.HumanoidRootPart.Position
  74.                 local Low,Lowest = nil,1e99
  75.                 if (game.Workspace.Starter.DigPit.Wedge.Position - CurrentPosition).Magnitude < Lowest then
  76.                     Lowest = (game.Workspace.Starter.DigPit.Wedge.Position - CurrentPosition).Magnitude
  77.                     Low = "Starter"
  78.                 end
  79.                 for i,v in pairs(NormalBlocks) do
  80.                     if i ~= "Starter" then
  81.                         local Part = game:GetService("Workspace")["Biomes"][i]["DigPit"]:FindFirstChild("Wedge")
  82.                         if Part and (Part.Position - CurrentPosition).Magnitude < Lowest then
  83.                             Lowest = (Part.Position - CurrentPosition).Magnitude
  84.                             Low = i
  85.                         end
  86.                     end
  87.                 end
  88.                 Biome = Low
  89.             end)
  90.             wait(.5)
  91.         end
  92.     end))
  93. end
  94.  
  95. function BlockBiomeCheck()
  96.     for i,v in pairs(game:GetService("Workspace")["Blocks"]:GetChildren()) do
  97.         for a,b in pairs(NormalBlocks[Biome]) do
  98.             if v:FindFirstChild(b) then
  99.                 return v
  100.             end
  101.         end
  102.     end
  103. end
  104.  
  105. function SpecialChecks(obj,pos)
  106.     local Good = true
  107.     local ObjP = obj.Position
  108.     if Type == "All Around" then
  109.         Good = true
  110.     elseif Type == "Up and Down" and not ((ObjP.X > pos.X - 3.1 and ObjP.X < pos.X + 3.1) and (ObjP.Z > pos.Z - 3.1 and ObjP.Z < pos.Z + 3.1)) then
  111.         Good = false
  112.     elseif Type == "AllButUp&Down" and ((ObjP.X > pos.X - 3.1 and ObjP.X < pos.X + 3.1) and (ObjP.Z > pos.Z - 3.1 and ObjP.Z < pos.Z + 3.1)) then
  113.         Good = false
  114.     elseif Type == "Same Level" and not (ObjP.Y > pos.Y - 3 and ObjP.Y < pos.Y + 3) then
  115.         Good = false
  116.     elseif Type == "Above" and (ObjP.Y <= pos.Y - 2) then
  117.         Good = false
  118.     end
  119.     if Good and Normals ~= Specials then
  120.         if Normals and not table.find(NormalBlocks[Biome],obj.Name) then
  121.             Good = false
  122.         elseif Specials and table.find(NormalBlocks[Biome],obj.Name) then
  123.             Good = false
  124.         end
  125.     end
  126.     return Good
  127. end
  128.  
  129. --------------------------------------------------
  130.  
  131. S1:Cheat("Checkbox","AutoSell",
  132. function(State)
  133.     if not State then
  134.         _G.on1 = 0
  135.     else
  136.         _G.on1 = 1
  137.         while _G.on1 == 1 do
  138.             wait()
  139.             pcall(function()
  140.                 local Gauge = game:GetService("Players")["LocalPlayer"]["PlayerGui"]["GameUI"]["Menu"]["MenuLeft"]["BagGauge"]["Inner"]["Progress"]["Gauge"]
  141.                 if Gauge.Size.Width.Scale >= Percent / 100 then
  142.                     local root = plr.Character.HumanoidRootPart
  143.                     local o = root.CFrame
  144.                     root.CFrame = game:GetService("Workspace")["Pads"]["Sell"].CFrame * CFrame.new(0,3,0)
  145.                     EventCache.Sell:Fire(true);
  146.                     repeat wait() until Gauge.Size.Width.Scale <= .08 or not _G.on1
  147.                     EventCache.Sell:Fire(false);
  148.                     root.CFrame = o
  149.                 end
  150.             end)
  151.         end
  152.     end
  153. end
  154. )
  155.  
  156. S1:Cheat("Checkbox","Mine",
  157. function(State)
  158.     if not State then
  159.         _G.on = 0
  160.     else
  161.         _G.on = 1
  162.  
  163.         BiomeCheck()
  164.        
  165.         pcall(function()
  166.             while _G.on == 1 do
  167.                 game:GetService('RunService').Stepped:wait()
  168.                
  169.                 local Minables = {}
  170.                 local CurrentPosition = plr.Character.HumanoidRootPart.Position
  171.                 for a,b in pairs(BlockBiomeCheck():GetChildren()) do
  172.                     if b and b:IsA("Part") and (b.Position - CurrentPosition).Magnitude < MineDistance and SpecialChecks(b,CurrentPosition) then
  173.                         table.insert(Minables,b)
  174.                     elseif Changed then
  175.                         break
  176.                     end
  177.                 end
  178.                 for i,v in pairs(Minables) do
  179.                     if v then
  180.                         Mine(v)
  181.                         if i % 4 == 0 then
  182.                             game:GetService('RunService').Stepped:wait()
  183.                         end
  184.                         if Changed or _G.on == 0 then
  185.                             break
  186.                         end
  187.                     end
  188.                 end
  189.                 if Type == "Up and Down" then
  190.                     wait()
  191.                 end
  192.                 if #Minables == 0 then
  193.                     wait(.5)
  194.                 end
  195.                 Changed = false
  196.             end
  197.         end)
  198.     end
  199. end
  200. )
  201.  
  202. ----------------------------------------------------
  203.  
  204. S2:Cheat("Slider", "Auto Sell %", function(Value)--Slider
  205.     Percent = Value
  206. end, {min = 10, max = 100, suffix = " %"})
  207.  
  208. S2:Cheat("Slider", "Mine Distance", function(Value)--Slider
  209.     MineDistance = Value
  210.     Changed = true
  211. end, {min = 0, max = 50, suffix = " studs"})
  212.  
  213. S2:Cheat("Checkbox","Mine Normals",
  214. function(State)
  215.     if not State then
  216.         Normals = false
  217.         Changed = true
  218.     else
  219.         Normals = true
  220.         Changed = true
  221.     end
  222. end
  223. )
  224.  
  225. S2:Cheat("Checkbox","Mine Ores",
  226. function(State)
  227.     if not State then
  228.         Specials = false
  229.         Changed = true
  230.     else
  231.         Specials = true
  232.         Changed = true
  233.     end
  234. end
  235. )
  236.  
  237. S2:Cheat("Dropdown", "Mining Type", function(Option) --Dropdowns
  238.     Type = Option
  239.     Changed = true
  240. end, {
  241.     options = {
  242.         "All Around",
  243.         "Up and Down",
  244.         "AllButUp&Down",
  245.         "Same Level",
  246.         "Above",
  247.     }
  248. })
  249.  
  250.  
Add Comment
Please, Sign In to add comment