Advertisement
Guest User

Roblox mining simulator script

a guest
Jul 31st, 2018
47,704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.59 KB | None | 0 0
  1.  
  2.  
  3. function BackpackFull()
  4. local Backpack = c:FindFirstChild("Backpack")
  5. if Backpack then
  6. local Txt = Backpack:FindFirstChild("Decore")
  7. if Txt then
  8. Txt = Txt:FindFirstChild("Count")
  9. if Txt then
  10. Txt = Txt:FindFirstChild("SurfaceGui")
  11. if Txt then
  12. Txt = Txt:FindFirstChild("Amount")
  13. end
  14. end
  15. end
  16. if Txt then
  17. local Cur, Max = string.match(Txt.Text, "(%d+)/(%w+)")
  18. if string.find(Max, "inf") then
  19. Max = AutoSellAmount
  20. end
  21. Cur, Max = tonumber(Cur), tonumber(Max)
  22.  
  23. if Cur >= Max then
  24. return true
  25. else
  26. return false
  27. end
  28. end
  29. end
  30.  
  31. return false
  32. end
  33.  
  34. function EggEquipped()
  35. local FindPet = c:FindFirstChild("Pet")
  36. if FindPet then
  37. FindPet = FindPet:FindFirstChild("Fake")
  38. end
  39.  
  40. if FindPet then
  41. if string.find(string.lower(FindPet.Value), "egg") then
  42. return true
  43. end
  44. end
  45.  
  46. return false
  47. end
  48.  
  49.  
  50. function EquipEgg()
  51. if (tick() - GetPetInventoryTick) > 2.5 then
  52. GetPetInventoryTick = tick()
  53. local MyPets = game.Workspace.RemoteFunction:InvokeServer("getPD")[12]
  54. for i, v in next, MyPets do
  55. local Pet = MyPets[i][1]
  56. if string.find(string.lower(Pet), "egg") then
  57. for i2 = 0, 5 do
  58. game.Workspace.RemoteEvent:FireServer("equipPet", MyPets[i])
  59. wait(0.1)
  60. end
  61. break
  62. end
  63. end
  64. end
  65. end
  66.  
  67. function GetMaps()
  68. for i, v in next, getnilinstances() do
  69. local Str = tostring(v)
  70. if Str == "Map" or Str == "SpaceMap" or Str == "Candyland" or Str == "Toyland" or Str == "FoodLand" or Str == "Dinoland" then
  71. Maps[Str] = v
  72. end
  73. end
  74. end
  75.  
  76. function PrintTables(T)
  77. for i, v in next, T do
  78. if type(v) == "table" then
  79. print("TABLE: " .. tostring(i))
  80. PrintTables(v)
  81. end
  82. warn(i, v)
  83. end
  84. end
  85.  
  86. function spairs(t, order)
  87. -- collect the keys
  88. local keys = {}
  89. for k in pairs(t) do keys[#keys+1] = k end
  90.  
  91. -- if order function given, sort by it by passing the table and keys a, b,
  92. -- otherwise just sort the keys
  93. if order then
  94. table.sort(keys, function(a,b) return order(t, a, b) end)
  95. else
  96. table.sort(keys)
  97. end
  98.  
  99. -- return the iterator function
  100. local i = 0
  101. return function()
  102. i = i + 1
  103. if keys[i] then
  104. return keys[i], t[keys[i]]
  105. end
  106. end
  107. end
  108.  
  109.  
  110. function InitGui()
  111. repeat wait() until g:FindFirstChild("Chat")
  112.  
  113. -- Objects
  114.  
  115. local Mining_Simulator = Instance.new("ScreenGui")
  116. local MainFrame = Instance.new("Frame")
  117. local Title = Instance.new("TextLabel")
  118. local design = Instance.new("Frame")
  119. local buttons = Instance.new("Frame")
  120. local InstantMineToggle = Instance.new("TextButton")
  121. local MineAnyBlockToggle = Instance.new("TextButton")
  122. local SavePosition = Instance.new("TextButton")
  123. local LoadPosition = Instance.new("TextButton")
  124. local CurrentPosition = Instance.new("TextLabel")
  125. local AutoSellAdjust = Instance.new("TextButton")
  126. local FreeSkipToggle = Instance.new("TextButton")
  127. local AutoClickToggle = Instance.new("TextButton")
  128. local OpenShop = Instance.new("TextButton")
  129. local SellInventoryButton = Instance.new("TextButton")
  130. local SpinAllCratesButton = Instance.new("TextButton")
  131. local AutoRebirthToggle = Instance.new("TextButton")
  132. local SellNonLegendaryHats = Instance.new("TextButton")
  133. local BuyEpicCrateButton = Instance.new("TextButton")
  134. local AutoSellToggle = Instance.new("TextButton")
  135. local BuyEpicEggsButton = Instance.new("TextButton")
  136. local SellNonLegendarySkins = Instance.new("TextButton")
  137. local BuyEpicHatCrateButton = Instance.new("TextButton")
  138. local SellNonLegendaryPets = Instance.new("TextButton")
  139. local CopyHatData = Instance.new("TextButton")
  140. local NewInstantMineToggle = Instance.new("TextButton")
  141. local AutoEquipEggs = Instance.new("TextButton")
  142. local CopySkinData = Instance.new("TextButton")
  143. local CopyPetData = Instance.new("TextButton")
  144. local TeleportToEarth = Instance.new("TextButton")
  145. local TeleportToSpace = Instance.new("TextButton")
  146. local TeleportToCandy = Instance.new("TextButton")
  147. local TeleportToToy = Instance.new("TextButton")
  148. local TeleportToFood = Instance.new("TextButton")
  149. local TeleportToDino = Instance.new("TextButton")
  150.  
  151. -- Properties
  152.  
  153. Mining_Simulator.Name = "Mining_Simulator"
  154. Mining_Simulator.Parent = cg
  155. Mining_Simulator.ResetOnSpawn = false
  156.  
  157. MainFrame.Name = "MainFrame"
  158. MainFrame.Parent = Mining_Simulator
  159. MainFrame.Active = true
  160. MainFrame.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  161. MainFrame.BorderSizePixel = 0
  162. MainFrame.Draggable = true
  163. MainFrame.Position = UDim2.new(0.5, -175, 0.5, -350)
  164. MainFrame.Size = UDim2.new(0, 350, 0, 700)
  165.  
  166. Title.Name = "Title"
  167. Title.Parent = MainFrame
  168. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  169. Title.BackgroundTransparency = 1
  170. Title.Size = UDim2.new(1, 0, 0, 50)
  171. Title.Font = Enum.Font.SourceSansBold
  172. Title.Text = "Mining Simulator GUI\nMade by: Racist Dolphin#5199\nVersion: 1.26"
  173. Title.TextColor3 = Color3.new(1, 1, 1)
  174. Title.TextSize = 18
  175. Title.TextTransparency = 0.5
  176.  
  177. design.Name = "design"
  178. design.Parent = MainFrame
  179. design.BackgroundColor3 = Color3.new(1, 1, 1)
  180. design.BackgroundTransparency = 0.5
  181. design.BorderSizePixel = 0
  182. design.Position = UDim2.new(0.0500000007, 0, 0, 50)
  183. design.Size = UDim2.new(0.899999976, 0, 0, 2)
  184.  
  185. buttons.Name = "buttons"
  186. buttons.Parent = MainFrame
  187. buttons.BackgroundColor3 = Color3.new(1, 1, 1)
  188. buttons.BackgroundTransparency = 1
  189. buttons.Position = UDim2.new(0, 20, 0, 70)
  190. buttons.Size = UDim2.new(1, -40, 1, -80)
  191.  
  192. InstantMineToggle.Name = "InstantMineToggle"
  193. InstantMineToggle.Parent = buttons
  194. InstantMineToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  195. InstantMineToggle.BackgroundTransparency = 0.5
  196. InstantMineToggle.BorderSizePixel = 0
  197. InstantMineToggle.Size = UDim2.new(0, 150, 0, 30)
  198. InstantMineToggle.Font = Enum.Font.SourceSansBold
  199. InstantMineToggle.Text = "Instant Mine"
  200. InstantMineToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  201. InstantMineToggle.TextSize = 14
  202. InstantMineToggle.TextWrapped = true
  203.  
  204. MineAnyBlockToggle.Name = "MineAnyBlockToggle"
  205. MineAnyBlockToggle.Parent = buttons
  206. MineAnyBlockToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  207. MineAnyBlockToggle.BackgroundTransparency = 0.5
  208. MineAnyBlockToggle.BorderSizePixel = 0
  209. MineAnyBlockToggle.Position = UDim2.new(1, -150, 0, 0)
  210. MineAnyBlockToggle.Size = UDim2.new(0, 150, 0, 30)
  211. MineAnyBlockToggle.Font = Enum.Font.SourceSansBold
  212. MineAnyBlockToggle.Text = "Mine Any Block"
  213. MineAnyBlockToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  214. MineAnyBlockToggle.TextSize = 14
  215. MineAnyBlockToggle.TextWrapped = true
  216.  
  217. SavePosition.Name = "SavePosition"
  218. SavePosition.Parent = buttons
  219. SavePosition.BackgroundColor3 = Color3.new(1, 1, 1)
  220. SavePosition.BackgroundTransparency = 0.5
  221. SavePosition.BorderSizePixel = 0
  222. SavePosition.Position = UDim2.new(0, 0, 0, 520)
  223. SavePosition.Size = UDim2.new(0, 150, 0, 30)
  224. SavePosition.Font = Enum.Font.SourceSansBold
  225. SavePosition.Text = "Save Position"
  226. SavePosition.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  227. SavePosition.TextSize = 14
  228. SavePosition.TextWrapped = true
  229.  
  230. LoadPosition.Name = "LoadPosition"
  231. LoadPosition.Parent = buttons
  232. LoadPosition.BackgroundColor3 = Color3.new(1, 1, 1)
  233. LoadPosition.BackgroundTransparency = 0.5
  234. LoadPosition.BorderSizePixel = 0
  235. LoadPosition.Position = UDim2.new(1, -150, 0, 520)
  236. LoadPosition.Size = UDim2.new(0, 150, 0, 30)
  237. LoadPosition.Font = Enum.Font.SourceSansBold
  238. LoadPosition.Text = "Load Position"
  239. LoadPosition.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  240. LoadPosition.TextSize = 14
  241. LoadPosition.TextWrapped = true
  242.  
  243. CurrentPosition.Name = "CurrentPosition"
  244. CurrentPosition.Parent = buttons
  245. CurrentPosition.BackgroundColor3 = Color3.new(1, 1, 1)
  246. CurrentPosition.BackgroundTransparency = 1
  247. CurrentPosition.Position = UDim2.new(0, 0, 0, 600)
  248. CurrentPosition.Size = UDim2.new(1, 0, 0, 15)
  249. CurrentPosition.Font = Enum.Font.SourceSansBold
  250. CurrentPosition.Text = "TESTING"
  251. CurrentPosition.TextColor3 = Color3.new(1, 1, 1)
  252. CurrentPosition.TextSize = 18
  253. CurrentPosition.TextTransparency = 0.5
  254.  
  255. AutoSellAdjust.Name = "AutoSellAdjust"
  256. AutoSellAdjust.Parent = buttons
  257. AutoSellAdjust.BackgroundColor3 = Color3.new(1, 1, 1)
  258. AutoSellAdjust.BackgroundTransparency = 0.5
  259. AutoSellAdjust.BorderSizePixel = 0
  260. AutoSellAdjust.Position = UDim2.new(0, 85, 0, 40)
  261. AutoSellAdjust.Size = UDim2.new(0, 65, 0, 30)
  262. AutoSellAdjust.Font = Enum.Font.SourceSansBold
  263. AutoSellAdjust.Text = "< Adjust"
  264. AutoSellAdjust.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  265. AutoSellAdjust.TextSize = 14
  266. AutoSellAdjust.TextWrapped = true
  267.  
  268. FreeSkipToggle.Name = "FreeSkipToggle"
  269. FreeSkipToggle.Parent = buttons
  270. FreeSkipToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  271. FreeSkipToggle.BackgroundTransparency = 0.5
  272. FreeSkipToggle.BorderSizePixel = 0
  273. FreeSkipToggle.Position = UDim2.new(1, -150, 0, 40)
  274. FreeSkipToggle.Size = UDim2.new(0, 150, 0, 30)
  275. FreeSkipToggle.Font = Enum.Font.SourceSansBold
  276. FreeSkipToggle.Text = "Free Crate Skips"
  277. FreeSkipToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  278. FreeSkipToggle.TextSize = 14
  279. FreeSkipToggle.TextWrapped = true
  280.  
  281. AutoClickToggle.Name = "AutoClickToggle"
  282. AutoClickToggle.Parent = buttons
  283. AutoClickToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  284. AutoClickToggle.BackgroundTransparency = 0.5
  285. AutoClickToggle.BorderSizePixel = 0
  286. AutoClickToggle.Position = UDim2.new(1, -150, 0, 80)
  287. AutoClickToggle.Size = UDim2.new(0, 150, 0, 30)
  288. AutoClickToggle.Font = Enum.Font.SourceSansBold
  289. AutoClickToggle.Text = "Auto Click (Hotkey: C)"
  290. AutoClickToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  291. AutoClickToggle.TextSize = 14
  292. AutoClickToggle.TextWrapped = true
  293.  
  294. OpenShop.Name = "OpenShop"
  295. OpenShop.Parent = buttons
  296. OpenShop.BackgroundColor3 = Color3.new(1, 1, 1)
  297. OpenShop.BackgroundTransparency = 0.5
  298. OpenShop.BorderSizePixel = 0
  299. OpenShop.Position = UDim2.new(0, 0, 0, 80)
  300. OpenShop.Size = UDim2.new(0, 150, 0, 30)
  301. OpenShop.Font = Enum.Font.SourceSansBold
  302. OpenShop.Text = "Open Shop"
  303. OpenShop.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  304. OpenShop.TextSize = 14
  305. OpenShop.TextWrapped = true
  306.  
  307. SellInventoryButton.Name = "SellInventoryButton"
  308. SellInventoryButton.Parent = buttons
  309. SellInventoryButton.BackgroundColor3 = Color3.new(1, 1, 1)
  310. SellInventoryButton.BackgroundTransparency = 0.5
  311. SellInventoryButton.BorderSizePixel = 0
  312. SellInventoryButton.Position = UDim2.new(0, 0, 0, 120)
  313. SellInventoryButton.Size = UDim2.new(0, 150, 0, 30)
  314. SellInventoryButton.Font = Enum.Font.SourceSansBold
  315. SellInventoryButton.Text = "Sell Inventory"
  316. SellInventoryButton.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  317. SellInventoryButton.TextSize = 14
  318. SellInventoryButton.TextWrapped = true
  319.  
  320. SpinAllCratesButton.Name = "SpinAllCratesButton"
  321. SpinAllCratesButton.Parent = buttons
  322. SpinAllCratesButton.BackgroundColor3 = Color3.new(1, 1, 1)
  323. SpinAllCratesButton.BackgroundTransparency = 0.5
  324. SpinAllCratesButton.BorderSizePixel = 0
  325. SpinAllCratesButton.Position = UDim2.new(1, -150, 0, 120)
  326. SpinAllCratesButton.Size = UDim2.new(0, 150, 0, 30)
  327. SpinAllCratesButton.Font = Enum.Font.SourceSansBold
  328. SpinAllCratesButton.Text = "Spin All Crates"
  329. SpinAllCratesButton.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  330. SpinAllCratesButton.TextSize = 14
  331. SpinAllCratesButton.TextWrapped = true
  332.  
  333. AutoRebirthToggle.Name = "AutoRebirthToggle"
  334. AutoRebirthToggle.Parent = buttons
  335. AutoRebirthToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  336. AutoRebirthToggle.BackgroundTransparency = 0.5
  337. AutoRebirthToggle.BorderSizePixel = 0
  338. AutoRebirthToggle.Position = UDim2.new(1, -150, 0, 280)
  339. AutoRebirthToggle.Size = UDim2.new(0, 150, 0, 30)
  340. AutoRebirthToggle.Font = Enum.Font.SourceSansBold
  341. AutoRebirthToggle.Text = "Auto Rebirth"
  342. AutoRebirthToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  343. AutoRebirthToggle.TextSize = 14
  344. AutoRebirthToggle.TextWrapped = true
  345.  
  346. SellNonLegendaryHats.Name = "SellNonLegendaryHats"
  347. SellNonLegendaryHats.Parent = buttons
  348. SellNonLegendaryHats.BackgroundColor3 = Color3.new(1, 1, 1)
  349. SellNonLegendaryHats.BackgroundTransparency = 0.5
  350. SellNonLegendaryHats.BorderSizePixel = 0
  351. SellNonLegendaryHats.Position = UDim2.new(1, -150, 0, 200)
  352. SellNonLegendaryHats.Size = UDim2.new(0, 150, 0, 30)
  353. SellNonLegendaryHats.Font = Enum.Font.SourceSansBold
  354. SellNonLegendaryHats.Text = "Sell NON Legendary Hats"
  355. SellNonLegendaryHats.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  356. SellNonLegendaryHats.TextSize = 14
  357. SellNonLegendaryHats.TextWrapped = true
  358.  
  359. BuyEpicCrateButton.Name = "BuyEpicCrateButton"
  360. BuyEpicCrateButton.Parent = buttons
  361. BuyEpicCrateButton.BackgroundColor3 = Color3.new(1, 1, 1)
  362. BuyEpicCrateButton.BackgroundTransparency = 0.5
  363. BuyEpicCrateButton.BorderSizePixel = 0
  364. BuyEpicCrateButton.Position = UDim2.new(1, -150, 0, 160)
  365. BuyEpicCrateButton.Size = UDim2.new(0, 150, 0, 30)
  366. BuyEpicCrateButton.Font = Enum.Font.SourceSansBold
  367. BuyEpicCrateButton.Text = "Buy 1000 Epic Crates"
  368. BuyEpicCrateButton.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  369. BuyEpicCrateButton.TextSize = 14
  370. BuyEpicCrateButton.TextWrapped = true
  371.  
  372. AutoSellToggle.Name = "AutoSellToggle"
  373. AutoSellToggle.Parent = buttons
  374. AutoSellToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  375. AutoSellToggle.BackgroundTransparency = 0.5
  376. AutoSellToggle.BorderSizePixel = 0
  377. AutoSellToggle.Position = UDim2.new(0, 0, 0, 40)
  378. AutoSellToggle.Size = UDim2.new(0, 65, 0, 30)
  379. AutoSellToggle.Font = Enum.Font.SourceSansBold
  380. AutoSellToggle.Text = "Auto Sell"
  381. AutoSellToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  382. AutoSellToggle.TextSize = 14
  383. AutoSellToggle.TextWrapped = true
  384.  
  385. BuyEpicEggsButton.Name = "BuyEpicEggsButton"
  386. BuyEpicEggsButton.Parent = buttons
  387. BuyEpicEggsButton.BackgroundColor3 = Color3.new(1, 1, 1)
  388. BuyEpicEggsButton.BackgroundTransparency = 0.5
  389. BuyEpicEggsButton.BorderSizePixel = 0
  390. BuyEpicEggsButton.Position = UDim2.new(0, 0, 0, 200)
  391. BuyEpicEggsButton.Size = UDim2.new(0, 150, 0, 30)
  392. BuyEpicEggsButton.Font = Enum.Font.SourceSansBold
  393. BuyEpicEggsButton.Text = "Buy 50 Epic Eggs"
  394. BuyEpicEggsButton.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  395. BuyEpicEggsButton.TextSize = 14
  396. BuyEpicEggsButton.TextWrapped = true
  397.  
  398. SellNonLegendarySkins.Name = "SellNonLegendarySkins"
  399. SellNonLegendarySkins.Parent = buttons
  400. SellNonLegendarySkins.BackgroundColor3 = Color3.new(1, 1, 1)
  401. SellNonLegendarySkins.BackgroundTransparency = 0.5
  402. SellNonLegendarySkins.BorderSizePixel = 0
  403. SellNonLegendarySkins.Position = UDim2.new(0, 0, 0, 240)
  404. SellNonLegendarySkins.Size = UDim2.new(0, 150, 0, 30)
  405. SellNonLegendarySkins.Font = Enum.Font.SourceSansBold
  406. SellNonLegendarySkins.Text = "Sell NON Legendary Skins"
  407. SellNonLegendarySkins.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  408. SellNonLegendarySkins.TextSize = 14
  409. SellNonLegendarySkins.TextWrapped = true
  410.  
  411. BuyEpicHatCrateButton.Name = "BuyEpicHatCrateButton"
  412. BuyEpicHatCrateButton.Parent = buttons
  413. BuyEpicHatCrateButton.BackgroundColor3 = Color3.new(1, 1, 1)
  414. BuyEpicHatCrateButton.BackgroundTransparency = 0.5
  415. BuyEpicHatCrateButton.BorderSizePixel = 0
  416. BuyEpicHatCrateButton.Position = UDim2.new(0, 0, 0, 160)
  417. BuyEpicHatCrateButton.Size = UDim2.new(0, 150, 0, 30)
  418. BuyEpicHatCrateButton.Font = Enum.Font.SourceSansBold
  419. BuyEpicHatCrateButton.Text = "Buy 1000 Epic Hat Crates"
  420. BuyEpicHatCrateButton.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  421. BuyEpicHatCrateButton.TextSize = 14
  422. BuyEpicHatCrateButton.TextWrapped = true
  423.  
  424. SellNonLegendaryPets.Name = "SellNonLegendaryPets"
  425. SellNonLegendaryPets.Parent = buttons
  426. SellNonLegendaryPets.BackgroundColor3 = Color3.new(1, 1, 1)
  427. SellNonLegendaryPets.BackgroundTransparency = 0.5
  428. SellNonLegendaryPets.BorderSizePixel = 0
  429. SellNonLegendaryPets.Position = UDim2.new(1, -150, 0, 240)
  430. SellNonLegendaryPets.Size = UDim2.new(0, 150, 0, 30)
  431. SellNonLegendaryPets.Font = Enum.Font.SourceSansBold
  432. SellNonLegendaryPets.Text = "Sell NON Legendary Pets"
  433. SellNonLegendaryPets.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  434. SellNonLegendaryPets.TextSize = 14
  435. SellNonLegendaryPets.TextWrapped = true
  436.  
  437. CopyHatData.Name = "CopyHatData"
  438. CopyHatData.Parent = buttons
  439. CopyHatData.BackgroundColor3 = Color3.new(1, 1, 1)
  440. CopyHatData.BackgroundTransparency = 0.5
  441. CopyHatData.BorderSizePixel = 0
  442. CopyHatData.Position = UDim2.new(0, 0, 0, 320)
  443. CopyHatData.Size = UDim2.new(0, 150, 0, 30)
  444. CopyHatData.Font = Enum.Font.SourceSansBold
  445. CopyHatData.Text = "Copy Hat Data to Clipboard"
  446. CopyHatData.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  447. CopyHatData.TextSize = 14
  448. CopyHatData.TextWrapped = true
  449.  
  450. NewInstantMineToggle.Name = "NewInstantMineToggle"
  451. NewInstantMineToggle.Parent = buttons
  452. NewInstantMineToggle.BackgroundColor3 = Color3.new(0, 0.670588, 0.0431373)
  453. NewInstantMineToggle.BackgroundTransparency = 0.5
  454. NewInstantMineToggle.BorderSizePixel = 0
  455. NewInstantMineToggle.Position = UDim2.new(0, 0, 0, 560)
  456. NewInstantMineToggle.Size = UDim2.new(1, 0, 0, 30)
  457. NewInstantMineToggle.Font = Enum.Font.SourceSansBold
  458. NewInstantMineToggle.Text = "Use New Instant Mine Method"
  459. NewInstantMineToggle.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  460. NewInstantMineToggle.TextSize = 14
  461. NewInstantMineToggle.TextWrapped = true
  462.  
  463. AutoEquipEggs.Name = "AutoEquipEggs"
  464. AutoEquipEggs.Parent = buttons
  465. AutoEquipEggs.BackgroundColor3 = Color3.new(1, 1, 1)
  466. AutoEquipEggs.BackgroundTransparency = 0.5
  467. AutoEquipEggs.BorderSizePixel = 0
  468. AutoEquipEggs.Position = UDim2.new(0, 0, 0, 280)
  469. AutoEquipEggs.Size = UDim2.new(0, 150, 0, 30)
  470. AutoEquipEggs.Font = Enum.Font.SourceSansBold
  471. AutoEquipEggs.Text = "Auto Equip Eggs"
  472. AutoEquipEggs.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  473. AutoEquipEggs.TextSize = 14
  474. AutoEquipEggs.TextWrapped = true
  475.  
  476. CopySkinData.Name = "CopySkinData"
  477. CopySkinData.Parent = buttons
  478. CopySkinData.BackgroundColor3 = Color3.new(1, 1, 1)
  479. CopySkinData.BackgroundTransparency = 0.5
  480. CopySkinData.BorderSizePixel = 0
  481. CopySkinData.Position = UDim2.new(1, -150, 0, 320)
  482. CopySkinData.Size = UDim2.new(0, 150, 0, 30)
  483. CopySkinData.Font = Enum.Font.SourceSansBold
  484. CopySkinData.Text = "Copy Skin Data to Clipboard"
  485. CopySkinData.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  486. CopySkinData.TextSize = 14
  487. CopySkinData.TextWrapped = true
  488.  
  489. CopyPetData.Name = "CopyPetData"
  490. CopyPetData.Parent = buttons
  491. CopyPetData.BackgroundColor3 = Color3.new(1, 1, 1)
  492. CopyPetData.BackgroundTransparency = 0.5
  493. CopyPetData.BorderSizePixel = 0
  494. CopyPetData.Position = UDim2.new(0, 0, 0, 360)
  495. CopyPetData.Size = UDim2.new(1, 0, 0, 30)
  496. CopyPetData.Font = Enum.Font.SourceSansBold
  497. CopyPetData.Text = "Copy Pet Data to Clipboard"
  498. CopyPetData.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  499. CopyPetData.TextSize = 14
  500. CopyPetData.TextWrapped = true
  501.  
  502. TeleportToEarth.Name = "TeleportToEarth"
  503. TeleportToEarth.Parent = buttons
  504. TeleportToEarth.BackgroundColor3 = Color3.new(1, 1, 1)
  505. TeleportToEarth.BackgroundTransparency = 0.5
  506. TeleportToEarth.BorderSizePixel = 0
  507. TeleportToEarth.Position = UDim2.new(0, 0, 0, 400)
  508. TeleportToEarth.Size = UDim2.new(0, 150, 0, 30)
  509. TeleportToEarth.Font = Enum.Font.SourceSansBold
  510. TeleportToEarth.Text = "Teleport to Earth"
  511. TeleportToEarth.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  512. TeleportToEarth.TextSize = 14
  513. TeleportToEarth.TextWrapped = true
  514.  
  515. TeleportToSpace.Name = "TeleportToSpace"
  516. TeleportToSpace.Parent = buttons
  517. TeleportToSpace.BackgroundColor3 = Color3.new(1, 1, 1)
  518. TeleportToSpace.BackgroundTransparency = 0.5
  519. TeleportToSpace.BorderSizePixel = 0
  520. TeleportToSpace.Position = UDim2.new(1, -150, 0, 400)
  521. TeleportToSpace.Size = UDim2.new(0, 150, 0, 30)
  522. TeleportToSpace.Font = Enum.Font.SourceSansBold
  523. TeleportToSpace.Text = "Teleport to Space"
  524. TeleportToSpace.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  525. TeleportToSpace.TextSize = 14
  526. TeleportToSpace.TextWrapped = true
  527.  
  528. TeleportToCandy.Name = "TeleportToCandy"
  529. TeleportToCandy.Parent = buttons
  530. TeleportToCandy.BackgroundColor3 = Color3.new(1, 1, 1)
  531. TeleportToCandy.BackgroundTransparency = 0.5
  532. TeleportToCandy.BorderSizePixel = 0
  533. TeleportToCandy.Position = UDim2.new(0, 0, 0, 440)
  534. TeleportToCandy.Size = UDim2.new(0, 150, 0, 30)
  535. TeleportToCandy.Font = Enum.Font.SourceSansBold
  536. TeleportToCandy.Text = "Teleport to Candyland"
  537. TeleportToCandy.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  538. TeleportToCandy.TextSize = 14
  539. TeleportToCandy.TextWrapped = true
  540.  
  541. TeleportToToy.Name = "TeleportToToy"
  542. TeleportToToy.Parent = buttons
  543. TeleportToToy.BackgroundColor3 = Color3.new(1, 1, 1)
  544. TeleportToToy.BackgroundTransparency = 0.5
  545. TeleportToToy.BorderSizePixel = 0
  546. TeleportToToy.Position = UDim2.new(1, -150, 0, 440)
  547. TeleportToToy.Size = UDim2.new(0, 150, 0, 30)
  548. TeleportToToy.Font = Enum.Font.SourceSansBold
  549. TeleportToToy.Text = "Teleport to Toyland"
  550. TeleportToToy.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  551. TeleportToToy.TextSize = 14
  552. TeleportToToy.TextWrapped = true
  553.  
  554. TeleportToFood.Name = "TeleportToFood"
  555. TeleportToFood.Parent = buttons
  556. TeleportToFood.BackgroundColor3 = Color3.new(1, 1, 1)
  557. TeleportToFood.BackgroundTransparency = 0.5
  558. TeleportToFood.BorderSizePixel = 0
  559. TeleportToFood.Position = UDim2.new(0, 0, 0, 480)
  560. TeleportToFood.Size = UDim2.new(0, 150, 0, 30)
  561. TeleportToFood.Font = Enum.Font.SourceSansBold
  562. TeleportToFood.Text = "Teleport to Foodland"
  563. TeleportToFood.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  564. TeleportToFood.TextSize = 14
  565. TeleportToFood.TextWrapped = true
  566.  
  567. TeleportToDino.Name = "TeleportToDino"
  568. TeleportToDino.Parent = buttons
  569. TeleportToDino.BackgroundColor3 = Color3.new(1, 1, 1)
  570. TeleportToDino.BackgroundTransparency = 0.5
  571. TeleportToDino.BorderSizePixel = 0
  572. TeleportToDino.Position = UDim2.new(1, -150, 0, 480)
  573. TeleportToDino.Size = UDim2.new(0, 150, 0, 30)
  574. TeleportToDino.Font = Enum.Font.SourceSansBold
  575. TeleportToDino.Text = "Teleport to Dinoland"
  576. TeleportToDino.TextColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  577. TeleportToDino.TextSize = 14
  578. TeleportToDino.TextWrapped = true
  579.  
  580. local SpinDebounce = false
  581. local CancelSpin = false
  582.  
  583. InstantMineToggle.MouseButton1Click:connect(function()
  584. if SpinDebounce == false then
  585. InstantMine = not InstantMine
  586. if InstantMine then
  587. InstantMineToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  588. else
  589. InstantMineToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  590. r:UnbindFromRenderStep("InstantMine")
  591. InstantBindSet = false
  592. end
  593. end
  594. end)
  595.  
  596. MineAnyBlockToggle.MouseButton1Click:connect(function()
  597. if SpinDebounce == false then
  598. MineAnyBlock = not MineAnyBlock
  599. if MineAnyBlock then
  600. MineAnyBlockToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  601. else
  602. MineAnyBlockToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  603. end
  604. end
  605. end)
  606.  
  607. SavePosition.MouseButton1Click:connect(function()
  608. local tor = c:FindFirstChild("HumanoidRootPart")
  609. if tor then
  610. SavedPosition = tor.Position
  611. end
  612. end)
  613.  
  614. LoadPosition.MouseButton1Click:connect(function()
  615. local tor = c:FindFirstChild("HumanoidRootPart")
  616. if tor and SavedPosition ~= nil then
  617. tor.CFrame = CFrame.new(SavedPosition)
  618. end
  619. end)
  620.  
  621. AutoSellToggle.MouseButton1Click:connect(function()
  622. AutoSell = not AutoSell
  623. if AutoSell then
  624. AutoSellToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  625. else
  626. AutoSellToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  627. end
  628. end)
  629.  
  630. AutoSellAdjust.MouseButton1Click:connect(function()
  631. local Hint = Instance.new("Hint", cg)
  632. Hint.Text = "Auto Sell: 100,000"
  633. AutoSellAmount = AutoSellAmount + 25000
  634. if AutoSellAmount > 1000000 then
  635. AutoSellAmount = 100000
  636. end
  637. Hint.Text = "Auto Sell Amount Set to: " .. tostring(AutoSellAmount)
  638. wait(5)
  639. Hint:Destroy()
  640. end)
  641.  
  642. FreeSkipToggle.MouseButton1Click:connect(function()
  643. if SpinDebounce == false then
  644. FreeSKip = not FreeSKip
  645. if FreeSKip then
  646. FreeSkipToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  647. else
  648. FreeSkipToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  649. end
  650. end
  651. end)
  652.  
  653. OpenShop.MouseButton1Click:connect(function()
  654. local curFrame = SetCurFrame("OpenShop")
  655. getsenv(g.ScreenGui.ClientScript).displayCurrent()
  656. end)
  657.  
  658. SellInventoryButton.MouseButton1Click:connect(function()
  659. SellInventory = true
  660. end)
  661.  
  662. SpinAllCratesButton.MouseButton1Click:connect(function()
  663. if SpinDebounce == false then
  664. SpinDebounce = true
  665. InstantMine = false
  666. MineAnyBlock = false
  667. FreeSKip = false
  668. SpinAllCratesButton.BackgroundColor3 = Color3.new(1, 0, 0)
  669. InstantMineToggle.BackgroundColor3 = Color3.new(1, 0, 0)
  670. MineAnyBlockToggle.BackgroundColor3 = Color3.new(1, 0, 0)
  671. FreeSkipToggle.BackgroundColor3 = Color3.new(1, 0, 0)
  672. SpinAllCratesButton.Text = "Cancel Spining Crates"
  673.  
  674.  
  675. local data = workspace.RemoteFunction:InvokeServer("getPD")
  676. data = data[13]
  677. local function SpinCrates()
  678. local backup = getsenv(g.ScreenGui.ClientScript).displayCurrent
  679. local backup2 = getsenv(g.ScreenGui.ClientScript).updateInventoryLol
  680. local backup3 = getsenv(g.ScreenGui.ClientScript).updateInventory
  681. local backup4 = getsenv(g.ScreenGui.ClientScript).spinCrate
  682. local Message = Instance.new("Hint", cg)
  683. Message.Name = "CrateNumber"
  684. Message.Text = "Crate 0/0"
  685.  
  686. local event = g.ScreenGui.ChildAdded:Connect(function(obj)
  687. if obj.Name == "CrateSystem" then
  688. r.Heartbeat:wait()
  689. obj:Destroy()
  690. end
  691. end)
  692.  
  693. if data[1] ~= nil then
  694. getsenv(g.ScreenGui.ClientScript).displayCurrent = function() return end
  695. getsenv(g.ScreenGui.ClientScript).updateInventoryLol = function() return end
  696. getsenv(g.ScreenGui.ClientScript).updateInventory = function() return end
  697. getsenv(g.ScreenGui.ClientScript).spinCrate = function() return end
  698. SpinningCrates = true
  699. for i = 1, data[1][2] do
  700. if CancelSpin then
  701. event:Disconnect()
  702. break
  703. end
  704. local SecondsTime = 0.15 * (data[1][2] - i)
  705. local Hours = string.format("%02.f", math.floor(SecondsTime / 3600))
  706. local Minutes = string.format("%02.f", math.floor(SecondsTime / 60 - (Hours * 60)))
  707. local Seconds = string.format("%02.f", math.floor(SecondsTime - Hours * 3600 - Minutes * 60))
  708. Message.Text = "Opening crate " .. i .. "/" .. data[1][2] .. ". Estimated time: " .. Hours .. ":" .. Minutes .. ":" .. Seconds
  709. game.Workspace.RemoteEvent:FireServer("SpinCrate", data[1][1])
  710. wait(0.15)
  711. end
  712. end
  713. getsenv(g.ScreenGui.ClientScript).displayCurrent = backup
  714. getsenv(g.ScreenGui.ClientScript).updateInventoryLol = backup2
  715. getsenv(g.ScreenGui.ClientScript).updateInventory = backup3
  716. getsenv(g.ScreenGui.ClientScript).spinCrate = backup4
  717. event:Disconnect()
  718. SpinningCrates = false
  719. CancelSpin = false
  720. Message:Destroy()
  721. end
  722.  
  723. SpinCrates()
  724.  
  725. for i, v in next, g.ScreenGui:GetChildren() do
  726. if v.Name == "CrateSystem" then
  727. v:Destroy()
  728. end
  729. end
  730.  
  731. InstantMineToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  732. MineAnyBlockToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  733. FreeSkipToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  734. SpinAllCratesButton.BackgroundColor3 = Color3.new(1, 1, 1)
  735. SpinAllCratesButton.Text = "Spin All Crates"
  736. SpinDebounce = false
  737. else
  738. CancelSpin = true
  739. InstantMineToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  740. MineAnyBlockToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  741. FreeSkipToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  742. SpinAllCratesButton.BackgroundColor3 = Color3.new(1, 1, 1)
  743. SpinAllCratesButton.Text = "Spin All Crates"
  744. end
  745. end)
  746.  
  747. AutoRebirthToggle.MouseButton1Click:connect(function()
  748. AutoRebirth = not AutoRebirth
  749. if AutoRebirth then
  750. AutoRebirthToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  751. else
  752. AutoRebirthToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  753. end
  754. end)
  755.  
  756. BuyEpicHatCrateButton.MouseButton1Click:connect(function()
  757. game.Workspace.RemoteEvent:FireServer("OpenCrate", "Epic Hat Crate", 1000)
  758. end)
  759.  
  760. BuyEpicCrateButton.MouseButton1Click:connect(function()
  761. game.Workspace.RemoteEvent:FireServer("OpenCrate", "Epic", 1000)
  762. end)
  763.  
  764. BuyEpicEggsButton.MouseButton1Click:connect(function()
  765. game.Workspace.RemoteEvent:FireServer("BuyPet", "Epic Egg", 50)
  766. end)
  767.  
  768. SellNonLegendaryHats.MouseButton1Click:connect(function()
  769. MainFrame.Visible = false
  770. local BindableEvent = Instance.new("BindableFunction")
  771.  
  772. local function SellHats(Response)
  773. MainFrame.Visible = true
  774. if Response == "Yes" then
  775. local MyHats = game.Workspace.RemoteFunction:InvokeServer("getPD")[16]
  776. local HatModule = require(game.Lighting.Assets.Modules.HatModule)
  777. local Hint = Instance.new("Hint", cg)
  778. Hint.Text = "Sold hat: nil"
  779.  
  780. for i, v in next, MyHats do
  781. local Hat = MyHats[i][1]
  782. if HatModule[Hat].rarity ~= nil then
  783. if HatModule[Hat].rarity ~= "Legendary" then
  784. game.Workspace.RemoteEvent:FireServer("SellHat", MyHats[i][1], true)
  785. Hint.Text = "Sold hat: " .. Hat
  786. wait(0.15)
  787. end
  788. end
  789. end
  790.  
  791. Hint:Destroy()
  792. BindableEvent:Destroy()
  793. else
  794. BindableEvent:Destroy()
  795. return
  796. end
  797. end
  798.  
  799. BindableEvent.OnInvoke = SellHats
  800.  
  801. sg:SetCore("SendNotification", {
  802. Title = "DANGER! THINK ABOUT THIS.",
  803. Text = "THIS ACTION CANNOT BE UN-DONE! This will sell ALL NON - Legendary Hats in your inventory! You should NEVER run this after a game update!",
  804. Duration = 60,
  805. Callback = BindableEvent,
  806. Button1 = "Yes",
  807. Button2 = "No Fuck That"
  808. })
  809. end)
  810.  
  811. SellNonLegendarySkins.MouseButton1Click:connect(function()
  812. MainFrame.Visible = false
  813. local BindableEvent = Instance.new("BindableFunction")
  814.  
  815. local function SellSkins(Response)
  816. MainFrame.Visible = true
  817. if Response == "Yes" then
  818. local MySkins = game.Workspace.RemoteFunction:InvokeServer("getPD")[10]
  819. local SkinsModule = require(game.Lighting.Assets.Modules.TextureModule)
  820. local Hint = Instance.new("Hint", cg)
  821. Hint.Text = "Sold skin: nil"
  822.  
  823. for i, v in next, MySkins do
  824. local Skin = MySkins[i][1]
  825. if SkinsModule[Skin] ~= "Legendary" and Skin ~= "Default" then
  826. game.Workspace.RemoteEvent:FireServer("SellSkin", Skin, true)
  827. Hint.Text = "Sold skin: " .. Skin
  828. wait(0.15)
  829. end
  830. end
  831.  
  832. Hint:Destroy()
  833. BindableEvent:Destroy()
  834. else
  835. BindableEvent:Destroy()
  836. return
  837. end
  838. end
  839.  
  840. BindableEvent.OnInvoke = SellSkins
  841.  
  842. sg:SetCore("SendNotification", {
  843. Title = "DANGER! THINK ABOUT THIS.",
  844. Text = "THIS ACTION CANNOT BE UN-DONE! This will sell ALL NON - Legendary Skins in your inventory! You should NEVER run this after a game update!",
  845. Duration = 60,
  846. Callback = BindableEvent,
  847. Button1 = "Yes",
  848. Button2 = "No Fuck That"
  849. })
  850. end)
  851.  
  852. SellNonLegendaryPets.MouseButton1Click:connect(function()
  853. MainFrame.Visible = false
  854. local BindableEvent = Instance.new("BindableFunction")
  855.  
  856. local function SellPets(Response)
  857. MainFrame.Visible = true
  858. if Response == "Yes" then
  859. local MyPets = game.Workspace.RemoteFunction:InvokeServer("getPD")[12]
  860. local PetsModule = require(game.Lighting.Assets.Modules.PetModule)
  861. local Hint = Instance.new("Hint", cg)
  862. Hint.Text = "Sold pet: nil"
  863.  
  864. for i, v in next, MyPets do
  865. local Pet = MyPets[i][1]
  866. for i2, _ in next, PetsModule do
  867. if string.find(Pet, i2) then
  868. Pet = i2
  869. break
  870. end
  871. end
  872. if PetsModule[Pet].rarity ~= "Legendary" and not string.find(string.lower(Pet), "egg") then
  873. game.Workspace.RemoteEvent:FireServer("sellPet", MyPets[i])
  874. Hint.Text = "Sold pet: " .. tostring(MyPets[i][1])
  875. wait(0.15)
  876. end
  877. end
  878.  
  879. Hint:Destroy()
  880. BindableEvent:Destroy()
  881. else
  882. BindableEvent:Destroy()
  883. return
  884. end
  885. end
  886.  
  887. BindableEvent.OnInvoke = SellPets
  888.  
  889. sg:SetCore("SendNotification", {
  890. Title = "DANGER! THINK ABOUT THIS.",
  891. Text = "THIS ACTION CANNOT BE UN-DONE! This will sell ALL NON - Legendary Pets in your inventory! You should NEVER run this after a game update!",
  892. Duration = 60,
  893. Callback = BindableEvent,
  894. Button1 = "Yes",
  895. Button2 = "No Fuck That"
  896. })
  897. end)
  898.  
  899. AutoEquipEggs.MouseButton1Click:connect(function()
  900. AutoEquipEgg = not AutoEquipEgg
  901. if AutoEquipEgg then
  902. AutoEquipEggs.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  903. else
  904. AutoEquipEggs.BackgroundColor3 = Color3.new(1, 1, 1)
  905. end
  906. end)
  907.  
  908. NewInstantMineToggle.MouseButton1Click:connect(function()
  909. NewInstantMine = not NewInstantMine
  910. if NewInstantMine then
  911. NewInstantMineToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  912. else
  913. NewInstantMineToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  914. end
  915. end)
  916.  
  917. CopyHatData.MouseButton1Click:connect(function()
  918. local MyHats = game.Workspace.RemoteFunction:InvokeServer("getPD")[16]
  919. local HatsModule = require(game.Lighting.Assets.Modules.HatModule)
  920.  
  921. local HatData = { }
  922. local Sorted = { }
  923. local String = "\nMining Simulator Hats:\n"
  924.  
  925. for i, v in next, HatsModule do
  926. local Hat = i
  927. if HatsModule[i].rarity ~= nil then
  928. if HatsModule[i].rarity == "Legendary" then
  929. for i2, v2 in next, MyHats do
  930. if v2[1] == Hat then
  931. HatData[Hat] = v2[2]
  932. end
  933. end
  934. end
  935. end
  936. end
  937.  
  938. table.sort(HatData, function(a, b) return a > b end)
  939.  
  940. for i, v in spairs(HatData, function(t,a,b) return t[b] < t[a] end) do
  941. Sorted[i] = v
  942. String = String .. i .. ": x" .. v .. "\n"
  943. end
  944.  
  945. Synapse:CopyString(String)
  946. end)
  947.  
  948. CopySkinData.MouseButton1Click:connect(function()
  949. local MySkins = game.Workspace.RemoteFunction:InvokeServer("getPD")[10]
  950. local SkinsModule = require(game.Lighting.Assets.Modules.TextureModule)
  951.  
  952. local SkinData = { }
  953. local Sorted = { }
  954. local String = "\nMining Simulator Skins:\n"
  955.  
  956. for i, v in next, SkinsModule do
  957. local Skin = i
  958. if SkinsModule[Skin] == "Legendary" then
  959. for i2, v2 in next, MySkins do
  960. if v2[1] == Skin then
  961. SkinData[Skin] = v2[2]
  962. end
  963. end
  964. end
  965. end
  966.  
  967. table.sort(SkinData, function(a, b) return a > b end)
  968.  
  969. for i, v in spairs(SkinData, function(t,a,b) return t[b] < t[a] end) do
  970. Sorted[i] = v
  971. String = String .. i .. ": x" .. v .. "\n"
  972. end
  973.  
  974. Synapse:CopyString(String)
  975. end)
  976.  
  977. CopyPetData.MouseButton1Click:connect(function()
  978. local MyPets = game.Workspace.RemoteFunction:InvokeServer("getPD")[12]
  979. local PetsModule = require(game.Lighting.Assets.Modules.PetModule)
  980.  
  981. local Pets = { }
  982. local Sorted = { }
  983. local String = "\nMining Simulator Pets:\n"
  984.  
  985. for i, v in next, PetsModule do
  986. local Pet = i
  987. if PetsModule[Pet].rarity ~= nil then
  988. if PetsModule[Pet].rarity == "Legendary" then
  989. for i2, v2 in next, MyPets do
  990. if string.find(v2[1], Pet) then
  991. if Pets[v2[1]] == nil then
  992. Pets[v2[1]] = 1
  993. else
  994. Pets[v2[1]] = Pets[v2[1]] + 1
  995. end
  996. end
  997. end
  998. end
  999. end
  1000. end
  1001.  
  1002. table.sort(Pets, function(a, b) return a > b end)
  1003.  
  1004. for i, v in spairs(Pets, function(t,a,b) return t[b] < t[a] end) do
  1005. Sorted[i] = v
  1006. String = String .. i .. ": x" .. v .. "\n"
  1007. end
  1008.  
  1009. Synapse:CopyString(String)
  1010. end)
  1011.  
  1012. TeleportToEarth.MouseButton1Click:connect(function()
  1013. local tor = c:FindFirstChild("HumanoidRootPart")
  1014. if tor and tostring(CurMap) ~= "Map" then
  1015. tor.Anchored = true
  1016. CurMap.Parent = nil
  1017. Maps["Map"].Parent = workspace
  1018. CurMap = Maps["Map"]
  1019. tor.CFrame = CFrame.new(Vector3.new(-47.539, 13.565, -1.646))
  1020. tor.Anchored = false
  1021. end
  1022. end)
  1023.  
  1024. TeleportToSpace.MouseButton1Click:connect(function()
  1025. local tor = c:FindFirstChild("HumanoidRootPart")
  1026. if tor and tostring(CurMap) ~= "SpaceMap" then
  1027. tor.Anchored = true
  1028. CurMap.Parent = nil
  1029. Maps["SpaceMap"].Parent = workspace
  1030. CurMap = Maps["SpaceMap"]
  1031. tor.CFrame = CFrame.new(Vector3.new(-80.800, 14.166, 1569.200))
  1032. tor.Anchored = false
  1033. end
  1034. end)
  1035.  
  1036. TeleportToCandy.MouseButton1Click:connect(function()
  1037. local tor = c:FindFirstChild("HumanoidRootPart")
  1038. if tor and tostring(CurMap) ~= "Candyland" then
  1039. tor.Anchored = true
  1040. CurMap.Parent = nil
  1041. Maps["Candyland"].Parent = workspace
  1042. CurMap = Maps["Candyland"]
  1043. tor.CFrame = CFrame.new(Vector3.new(-26.600, 13.677, 3010.601))
  1044. tor.Anchored = false
  1045. end
  1046. end)
  1047.  
  1048. TeleportToToy.MouseButton1Click:connect(function()
  1049. local tor = c:FindFirstChild("HumanoidRootPart")
  1050. if tor and tostring(CurMap) ~= "Toyland" then
  1051. tor.Anchored = true
  1052. CurMap.Parent = nil
  1053. Maps["Toyland"].Parent = workspace
  1054. CurMap = Maps["Toyland"]
  1055. tor.CFrame = CFrame.new(Vector3.new(9.800, 13.856, 5718.596))
  1056. tor.Anchored = false
  1057. end
  1058. end)
  1059.  
  1060. TeleportToFood.MouseButton1Click:connect(function()
  1061. local tor = c:FindFirstChild("HumanoidRootPart")
  1062. if tor and tostring(CurMap) ~= "FoodLand" then
  1063. tor.Anchored = true
  1064. CurMap.Parent = nil
  1065. Maps["FoodLand"].Parent = workspace
  1066. CurMap = Maps["FoodLand"]
  1067. tor.CFrame = CFrame.new(Vector3.new(60.800, 13.667, 8675.194))
  1068. tor.Anchored = false
  1069. end
  1070. end)
  1071.  
  1072. TeleportToDino.MouseButton1Click:connect(function()
  1073. local tor = c:FindFirstChild("HumanoidRootPart")
  1074. if tor and tostring(CurMap) ~= "Dinoland" then
  1075. tor.Anchored = true
  1076. CurMap.Parent = nil
  1077. Maps["Dinoland"].Parent = workspace
  1078. CurMap = Maps["Dinoland"]
  1079. tor.CFrame = CFrame.new(Vector3.new(11.600, 13.688, 10581.403))
  1080. tor.Anchored = false
  1081. end
  1082. end)
  1083.  
  1084. local db = false
  1085. AutoClickToggle.MouseButton1Click:connect(function()
  1086. if not db then
  1087. db = true
  1088. AutoClick = true
  1089. AutoClickToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  1090. AutoClickToggle.Text = "Press C Key to Disable"
  1091. end
  1092. end)
  1093.  
  1094. i.InputBegan:connect(function(input, ingui)
  1095. if not ingui then
  1096. if input.UserInputType == Enum.UserInputType.Keyboard then
  1097. if input.KeyCode == Enum.KeyCode.C then
  1098. if AutoClick then
  1099. AutoClick = false
  1100. AutoClickToggle.BackgroundColor3 = Color3.new(1, 1, 1)
  1101. AutoClickToggle.Text = "Auto Click (Hotkey: C)"
  1102. mouse1click()
  1103. else
  1104. db = true
  1105. AutoClick = true
  1106. AutoClickToggle.BackgroundColor3 = Color3.new(0/255,171/255,11/255)
  1107. AutoClickToggle.Text = "Press C Key to Disable"
  1108. end
  1109. end
  1110.  
  1111. if input.KeyCode == Enum.KeyCode.P then
  1112. MainFrame.Visible = not MainFrame.Visible
  1113. end
  1114. end
  1115. end
  1116. end)
  1117.  
  1118. local tck = tick()
  1119.  
  1120. r:BindToRenderStep("HAX", 0, function()
  1121. local tor = c:FindFirstChild("HumanoidRootPart")
  1122. if tor then
  1123. local pos = tor.Position
  1124. local x = pos.x
  1125. local y = pos.y
  1126. local z = pos.z
  1127. CurrentPosition.Text = ("X: " .. string.format("%.3f", x) .. ", Y: " .. string.format("%.3f", y) .. ", Z: " .. string.format("%.3f", z))
  1128. end
  1129.  
  1130. if workspace.Collapsed.Value == true then
  1131. SavedPosition = nil
  1132. end
  1133. if (tick() - GetStatsTick) >= 1.0 then
  1134. coins, inventory, equipped, ownedItems, offer, rebirths, skins, skinEquipped, pets, crates, favorites, hatInventory, wearing, visibleHats, eggHuntStuff, eggPackBought, quests = game.Workspace.RemoteFunction:InvokeServer("GetStats")
  1135. GetStatsTick = tick()
  1136. end
  1137.  
  1138. if AutoBuy then
  1139. BuyAndEquipBestBackpack()
  1140. end
  1141.  
  1142. --BuyEpicHatCrateButton.Text = BuyEpicHatCrateButton.Text .. "\n COST: " .. tostring()
  1143.  
  1144. if AutoSell then
  1145. if BackpackFull() then
  1146. if g.ScreenGui:FindFirstChild("BackpackFull") then
  1147. g.ScreenGui:FindFirstChild("BackpackFull").Visible = false
  1148. end
  1149. SellInventory = true
  1150. end
  1151. end
  1152.  
  1153. if AutoRebirth then
  1154. if (coins - 10000000 * (rebirths + 1)) >= 0 then
  1155. game.Workspace.RemoteEvent:FireServer("Rebirth")
  1156. end
  1157. end
  1158.  
  1159. if AutoEquipEgg then
  1160. if not EggEquipped() then
  1161. EquipEgg()
  1162. end
  1163.  
  1164. if g.ScreenGui:FindFirstChild("HatchedInfo") then
  1165. g.ScreenGui.HatchedInfo:Destroy()
  1166. end
  1167. end
  1168.  
  1169. if AutoClick and (tick() - tck) >= 0.2 then
  1170. mouse1press()
  1171. tck = tick()
  1172. end
  1173.  
  1174. if AutoClick and (tick() - ResetAutoClick) >= 300 then
  1175. AutoClick = false
  1176. mouse1release()
  1177. keypress(0x20)
  1178. keyrelease(0x20)
  1179. ResetAutoClick = tick()
  1180. wait(3)
  1181. AutoClick = true
  1182. elseif not AutoClick then
  1183. ResetAutoClick = tick()
  1184. end
  1185. end)
  1186.  
  1187. workspace.Collapsed.Changed:connect(function()
  1188. if workspace.Collapsed.Value == false then
  1189. local tor = c:FindFirstChild("HumanoidRootPart")
  1190. if tor then
  1191. if tor.Position.Z > workspace.DinoPosition.Value.Z then
  1192. tor.CFrame = CFrame.new(Vector3.new(5.601, 11.468, 10546.147))
  1193. elseif tor.Position.Z > workspace.FoodPosition.Value.Z then
  1194. tor.CFrame = CFrame.new(Vector3.new(60.400, 11.467, 8725.875))
  1195. elseif tor.Position.Z > workspace.ToyPosition.Value.Z then
  1196. tor.CFrame = CFrame.new(Vector3.new(5.763, 11.467, 5692.938))
  1197. elseif tor.Position.Z > workspace.CandyPosition.Value.Z then
  1198. tor.CFrame = CFrame.new(Vector3.new(6.561, 11.467, 3005.799))
  1199. elseif tor.Position.Z > workspace.SpacePosition.Value.Z then
  1200. tor.CFrame = CFrame.new(Vector3.new(-24.733, 11.468, 1547.604))
  1201. else
  1202. tor.CFrame = CFrame.new(Vector3.new(-22.669, 11.468, -23.864))
  1203. end
  1204. end
  1205. else
  1206. local image = g.ScreenGui:FindFirstChild("CollapsedCave") or g.ScreenGui:WaitForChild("CollapsedCave")
  1207. if image then
  1208. image:Destroy()
  1209. end
  1210. end
  1211. end)
  1212.  
  1213. coroutine.resume(coroutine.create(function()
  1214. local BackupPosition = nil
  1215. while true do
  1216. if SellInventory then
  1217. local tor = c:FindFirstChild("HumanoidRootPart")
  1218. if tor then
  1219. BackupPosition = tor.Position
  1220. repeat
  1221. if g.ScreenGui:FindFirstChild("BackpackFull") then
  1222. g.ScreenGui:FindFirstChild("BackpackFull").Visible = false
  1223. end
  1224.  
  1225. if tor.Position.Z > workspace.DinoPosition.Value.Z then
  1226. game.Workspace.RemoteEvent:FireServer("MoveTo", "DinoSell")
  1227. wait(1)
  1228. tor.Anchored = true
  1229. elseif tor.Position.Z > workspace.FoodPosition.Value.Z then
  1230. game.Workspace.RemoteEvent:FireServer("MoveTo", "FoodSell")
  1231. wait(1)
  1232. tor.Anchored = true
  1233. elseif tor.Position.Z > workspace.ToyPosition.Value.Z then
  1234. game.Workspace.RemoteEvent:FireServer("MoveTo", "ToySell")
  1235. wait(1)
  1236. tor.Anchored = true
  1237. elseif tor.Position.Z > workspace.CandyPosition.Value.Z then
  1238. game.Workspace.RemoteEvent:FireServer("MoveTo", "CandySell")
  1239. wait(1)
  1240. tor.Anchored = true
  1241. elseif tor.Position.Z > workspace.SpacePosition.Value.Z then
  1242. game.Workspace.RemoteEvent:FireServer("MoveTo", "SpaceSell")
  1243. wait(1)
  1244. tor.Anchored = true
  1245. else
  1246. game.Workspace.RemoteEvent:FireServer("MoveTo", "SellSpawn")
  1247. wait(1)
  1248. tor.Anchored = true
  1249. end
  1250.  
  1251. wait()
  1252. until getsenv(g.ScreenGui.ClientScript).inventoryContents() <= 0
  1253. if g.ScreenGui:FindFirstChild("BackpackFull") then
  1254. g.ScreenGui.BackpackFull.Visible = false
  1255. end
  1256. tor.Anchored = false
  1257. SellInventory = false
  1258. for i = 0, 3 do
  1259. if workspace.Collapsed.Value == false then
  1260. tor.CFrame = CFrame.new(BackupPosition)
  1261. wait(0.2)
  1262. end
  1263. end
  1264. end
  1265. end
  1266.  
  1267. r.RenderStepped:wait()
  1268. end
  1269. end))
  1270.  
  1271. sg:SetCore("ChatMakeSystemMessage", {
  1272. Text = "Mining Simulator GUI successfully loaded!",
  1273. Color = Color3.new(math.random(1, 255) / 255, math.random(1, 255) / 255, math.random(1, 255) / 255),
  1274. FontSize = Enum.FontSize.Size24,
  1275. })
  1276.  
  1277. sg:SetCore("ChatMakeSystemMessage", {
  1278. Text = "Just a friendly reminder, press the \"P\" key to toggle the GUI!",
  1279. Color = Color3.new(1, 0, 0),
  1280. FontSize = Enum.FontSize.Size24,
  1281. })
  1282.  
  1283. sg:SetCore("ChatMakeSystemMessage", {
  1284. Text = "Updated for latest game update. (5/25/2018)",
  1285. Color = Color3.new(0, 1, 0),
  1286. FontSize = Enum.FontSize.Size24,
  1287. })
  1288.  
  1289. sg:SetCore("ChatMakeSystemMessage", {
  1290. Text = "DANGER: USE YOUR ALT ACCOUNT WHEN EXPLOITING, LOOKS LIKE ROBLOX IS BANNING EXPLOITERS.",
  1291. Color = Color3.new(1, 0, 0),
  1292. FontSize = Enum.FontSize.Size24,
  1293. })
  1294.  
  1295.  
  1296. for i, v in next, g.Chat:GetDescendants() do
  1297. if v:IsA("TextLabel") and v.Text == "Mining Simulator GUI successfully loaded!" then
  1298. spawn(function()
  1299. local num = 0
  1300. while true do
  1301. if num > 1 then
  1302. num = 0
  1303. end
  1304. num = num + 0.01
  1305. v.TextColor3 = Color3.fromHSV(num, 0.4, 1)
  1306.  
  1307. if v.Text ~= "Mining Simulator GUI successfully loaded!" then
  1308. v.TextColor3 = Color3.new(1, 1, 1)
  1309. break
  1310. end
  1311.  
  1312. r.RenderStepped:wait()
  1313. end
  1314. end)
  1315. break
  1316. end
  1317. end
  1318. end
  1319.  
  1320.  
  1321. GetMaps()
  1322. InitGui()
  1323.  
  1324.  
  1325. -- Don't copy cunt
  1326. local backup = nil
  1327. m.__namecall = function(...)
  1328. local t = {...}
  1329. local method = t[#t]
  1330.  
  1331. if method == "FindFirstChild" then
  1332. if (NewInstantMine and tostring(t[2]) == "Pickaxe") or (not NewInstantMine and tostring(t[2]) == "Stats") then
  1333. local env = getfenv(2)
  1334. if env.script then
  1335. if env.script.Parent ~= nil then
  1336. if tostring(env.script.Parent) == "ScreenGui" then
  1337. local start = debug.getlocal(2, "start") or debug.getupvalue(2, "mining")
  1338. if start ~= nil then
  1339. if backup == nil then
  1340. backup = debug.getupvalue(2, "toolModule")
  1341. end
  1342.  
  1343. if InstantMine then
  1344. debug.setupvalue(2, "mining", 0)
  1345. debug.setlocal(2, "startTick", tick() + 999)
  1346. debug.setlocal(2, "start", tick() - 999)
  1347. debug.setlocal(2, "broke", true)
  1348. debug.setlocal(2, "del", 0)
  1349. debug.setlocal(2, "mineTime", 0)
  1350. --debug.setlocal(2, "myClickCount", debug.getupvalue(2, "clickCount"))
  1351. end
  1352.  
  1353. if MineAnyBlock then
  1354. local toolmod = debug.getupvalue(2, "toolModule")
  1355. local pickaxe = debug.getlocal(2, "pickaxe")
  1356. if toolmod and pickaxe then
  1357. toolmod[pickaxe.Type.Value][1] = math.huge
  1358. debug.setupvalue(2, "toolModule", toolmod)
  1359. end
  1360. else
  1361. if toolmod and pickaxe then
  1362. debug.setupvalue(2, "toolModule", backup)
  1363. end
  1364. end
  1365.  
  1366. --[[local upv = debug.getupvalues(2)
  1367. local locals = debug.getlocals(2)
  1368.  
  1369. for i = 0, 25 do
  1370. print(" ")
  1371. end
  1372.  
  1373. print("UP VALUES:")
  1374. for i, v in next, upv do
  1375. warn(i, v)
  1376. end
  1377. print("LOCALS:")
  1378. for i, v in next, locals do
  1379. warn(i, v)
  1380. end]]
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end
  1386. end
  1387.  
  1388. if method == "PlayerOwnsAsset" then
  1389. if FreeSKip and tostring(t[3]) == "1537206320" then
  1390. return true
  1391. end
  1392. end
  1393.  
  1394. if method == "FireServer" then
  1395. if SpinningCrates or SellInventory then
  1396. if tostring(t[2]) == "MineBlock" then
  1397. return
  1398. end
  1399. end
  1400. end
  1401.  
  1402. return oldnamecall(...)
  1403. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement