Advertisement
HackNeedsScripts

Untitled

Oct 6th, 2022 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.47 KB | None | 0 0
  1. local Depth
  2. local SellTreshold
  3.  
  4. if not getgenv().SellTreshold then
  5. SellTreshold = 28000
  6. else
  7. SellTreshold = getgenv().SellTreshold
  8. end
  9.  
  10. if not getgenv().Depth then
  11. Depth = 160
  12. else
  13. Depth = getgenv().Depth
  14. end
  15.  
  16. do
  17. repeat wait() until game:IsLoaded()
  18. game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("ScreenGui")
  19. while game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.LoadingFrame.BackgroundTransparency == 0 do
  20. for i, connection in pairs(getconnections(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.LoadingFrame.Quality.LowQuality.MouseButton1Down)) do
  21. connection:Fire()
  22. end
  23. wait()
  24. end
  25. while true do
  26. if pcall(function() game.Players.LocalPlayer.leaderstats:WaitForChild("Blocks Mined") end) then
  27. if pcall(function() game.Players.LocalPlayer.PlayerGui.ScreenGui.StatsFrame.Coins:FindFirstChild("Amount") end) then
  28. if game.Players.LocalPlayer.PlayerGui.ScreenGui.StatsFrame.Tokens.Amount.Text ~= "Loading..." then
  29. break
  30. end
  31. end
  32. end
  33. wait(1)
  34. end
  35. game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.TeleporterFrame:Destroy()
  36. game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.StatsFrame.Sell:Destroy()
  37. game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.MainButtons.Surface:Destroy()
  38. end
  39.  
  40. local vuAF = game:GetService("VirtualUser")
  41. game:GetService("Players").LocalPlayer.Idled:connect(function()
  42. vuAF:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  43. wait(1)
  44. vuAF:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  45. end)
  46.  
  47. local Remote
  48.  
  49. Workspace.Collapsed.Changed:connect(function()
  50. if Workspace.Collapsed.Value == true then
  51. local ts = game:GetService("TeleportService")
  52. local p = game:GetService("Players").LocalPlayer
  53. ts:Teleport(game.PlaceId, p)
  54. end
  55. end)
  56.  
  57. do
  58. local Data = getsenv(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.ClientScript).displayCurrent
  59. local Values = getupvalue(Data,8)
  60. Remote = Values["RemoteEvent"]
  61. Data, Values = nil
  62. end
  63.  
  64. do
  65. local HumanoidRootPart = game.Players.LocalPlayer.Character.HumanoidRootPart
  66. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  67. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  68. HumanoidRootPart.Anchored = true
  69. Remote:FireServer("MoveTo", {{"LavaSpawn"}})
  70. local className = "Part"
  71. local parent = game.Workspace
  72. local part = Instance.new(className, parent)
  73. part.Anchored = true
  74. part.Size = Vector3.new(10, 0.5 , 100)
  75. part.Material = "ForceField"
  76. local pos = Vector3.new(21, 10, 26285)
  77. part.Position = pos
  78. wait(1)
  79. HumanoidRootPart.Anchored = false
  80. while HumanoidRootPart.Position.Z > 26220 do
  81. HumanoidRootPart.CFrame = CFrame.new(Vector3.new(HumanoidRootPart.Position.X,13.05,HumanoidRootPart.Position.Z-0.5))
  82. wait()
  83. end
  84. HumanoidRootPart.CFrame = CFrame.new(18, 10, 26220)
  85. end
  86.  
  87. do
  88. local function Split(s, delimiter)
  89. result = {};
  90. for match in (s..delimiter):gmatch("(.-)"..delimiter) do
  91. table.insert(result, match);
  92. end
  93. return result;
  94. end
  95. local RunService = game:GetService("RunService").Stepped
  96. local HumanoidRootPart = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  97. local depth = Split(game.Players.LocalPlayer.PlayerGui.ScreenGui.TopInfoFrame.Depth.Text," ")
  98. while tonumber(depth[1]) < Depth do
  99. local min = HumanoidRootPart.CFrame + Vector3.new(-1,-9,-1)
  100. local max = HumanoidRootPart.CFrame + Vector3.new(1,1,1)
  101. local region = Region3.new(min.Position, max.Position)
  102. local parts = workspace:FindPartsInRegion3WithWhiteList(region, {game.Workspace.Blocks}, 5)
  103. for each, block in pairs(parts) do
  104. Remote:FireServer("MineBlock",{{block.Parent}})
  105. RunService:Wait()
  106. end
  107. depth = Split(game.Players.LocalPlayer.PlayerGui.ScreenGui.TopInfoFrame.Depth.Text," ")
  108. wait()
  109. end
  110. end
  111.  
  112. do
  113. local CoinsAmount = game.Players.LocalPlayer.leaderstats.Coins
  114. local function GetCoinsAmount()
  115. local Amount = CoinsAmount.Value
  116. Amount = Amount:gsub(',', '')
  117.  
  118. return tonumber(Amount)
  119. end
  120.  
  121. local function comma_value(amount)
  122. local formatted = amount
  123. while true do
  124. formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
  125. if (k==0) then
  126. break
  127. end
  128. end
  129. return formatted
  130. end
  131.  
  132. local function Split(s, delimiter)
  133. result = {};
  134. for match in (s..delimiter):gmatch("(.-)"..delimiter) do
  135. table.insert(result, match);
  136. end
  137. return result;
  138. end
  139. local recovering = false
  140. local DepthAmount = game.Players.LocalPlayer.PlayerGui.ScreenGui.TopInfoFrame.Depth
  141. DepthAmount.Changed:connect(function()
  142. local depth = Split(DepthAmount.Text," ")
  143. if tonumber(depth[1]) >= 1500 then
  144. recovering = true
  145. local HumanoidRootPart = game.Players.LocalPlayer.Character.HumanoidRootPart
  146. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  147. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  148. HumanoidRootPart.Anchored = true
  149. Remote:FireServer("MoveTo", {{"LavaSpawn"}})
  150. local className = "Part"
  151. local parent = game.Workspace
  152. local part = Instance.new(className, parent)
  153. part.Anchored = true
  154. part.Size = Vector3.new(10, 0.5 , 100)
  155. part.Material = "ForceField"
  156. local pos = Vector3.new(21, 9.5, 26285)
  157. part.Position = pos
  158. wait(1)
  159. HumanoidRootPart.Anchored = false
  160. while HumanoidRootPart.Position.Z > 26220 do
  161. HumanoidRootPart.CFrame = CFrame.new(Vector3.new(HumanoidRootPart.Position.X,13.05,HumanoidRootPart.Position.Z-0.5))
  162. wait()
  163. end
  164. HumanoidRootPart.CFrame = CFrame.new(18, 10, 26220)
  165. wait(5)
  166. recovering = false
  167. end
  168. end)
  169.  
  170.  
  171. local RebirthsAmount = game.Players.LocalPlayer.leaderstats.Rebirths
  172. game:GetService("RunService"):BindToRenderStep("Rebirth", Enum.RenderPriority.Camera.Value, function()
  173. while GetCoinsAmount() >= (10000000 * (RebirthsAmount.Value + 1)) do
  174. Remote:FireServer("Rebirth",{{}})
  175. wait()
  176. end
  177. end)
  178.  
  179. local InventoryAmount = game.Players.LocalPlayer.PlayerGui.ScreenGui.StatsFrame2.Inventory.Amount
  180. local function GetInventoryAmount()
  181. local Amount = InventoryAmount.Text
  182. Amount = Amount:gsub('%s+', '')
  183. Amount = Amount:gsub(',', '')
  184. local Inventory = Amount:split("/")
  185. return tonumber(Inventory[1])
  186. end
  187.  
  188. local RunService = game:GetService("RunService").Stepped
  189. local HumanoidRootPart = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  190. local Character = game.Players.LocalPlayer.Character
  191. local SellArea = CFrame.new(41.96064, 14, -1239.64648, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  192. while true do
  193. if HumanoidRootPart then
  194. local minp = HumanoidRootPart.CFrame + Vector3.new(-10,-11,-10)
  195. local maxp = HumanoidRootPart.CFrame + Vector3.new(10,11,10)
  196. local region = Region3.new(minp.Position, maxp.Position)
  197. local parts = workspace:FindPartsInRegion3WithWhiteList(region, {game.Workspace.Blocks}, 100) -- ignore part
  198. for each, block in pairs(parts) do
  199. if block:IsA("BasePart") then
  200. Remote:FireServer("MineBlock",{{block.Parent}})
  201. repeat
  202. RunService:Wait()
  203. until not recovering
  204.  
  205. end
  206. if GetInventoryAmount() >= SellTreshold then
  207. if Character then
  208. if HumanoidRootPart then
  209. local SavedPosition = HumanoidRootPart.Position
  210. while GetInventoryAmount() >= SellTreshold do
  211. HumanoidRootPart.CFrame = SellArea
  212. Remote:FireServer("SellItems",{{ }})
  213. RunService:Wait()
  214. end
  215. HumanoidRootPart.Anchored = true
  216. local starttime1 = os.time()
  217. while (HumanoidRootPart.Position - SavedPosition).Magnitude > 1 do
  218. HumanoidRootPart.CFrame = CFrame.new(18, SavedPosition.Y, 26220)
  219. RunService:Wait()
  220. if os.time() - starttime1 > 5 then
  221. break
  222. end
  223. end
  224. HumanoidRootPart.Anchored = false
  225. end
  226. end
  227. end
  228. end
  229. end
  230. RunService:Wait()
  231. end
  232. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement