Advertisement
Scriptorz5

mining sim 2 op gui

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