Juanister531

MINING SIMULATOR SCRIPT

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