Advertisement
thesleepingpig

Mining Simulator GUI !

Nov 24th, 2018
7,608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.89 KB | None | 0 0
  1.  
  2. *PLEASE READ*
  3. I do not own this script. Also , use by your own risk.
  4. This script should work smoothly but due to my slow internet it seems a little bit laggy.
  5. This script is made by CasperYep from v3rmillion.
  6. Link to the original thread https://v3rmillion.net/showthread.php?tid=707911
  7. His v3rmillion Link : https://v3rmillion.net/member.php?action=profile&uid=2708
  8. His Discord : Casper SΓΆderback#0357
  9.  *NOTE* Please note that this script may not work for some exploit.
  10. *TIPS* Find or make a private server so that the game dev can't find you that easily.
  11.  
  12. For exploit that supports loadstring.
  13.  
  14. loadstring(game:HttpGet("https://pastebin.com/raw/fRw4GJhy", true))()
  15.  
  16. ---------------------------------------------------------------------------------------
  17. For exploit that doesn't support loadstring.
  18.  
  19. local OldGui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("Nice Flex But OK")
  20. if OldGui then
  21.     OldGui:Destroy()
  22. end
  23. local ScreenGUI = game:GetObjects("rbxassetid://2594598861")[1]
  24. ScreenGUI.Parent = game.Players.LocalPlayer.PlayerGui
  25. ScreenGUI.Name = "Nice Flex But OK"
  26.  
  27. local TopBar = ScreenGUI.Frame
  28. local MainFrame = TopBar.Frame
  29. local ExitButton = TopBar.ExitButton
  30. local OpenButton = TopBar.Parent.OpenButton
  31.  
  32. local RemoteText = TopBar.RemoteText
  33. local AutoSellToggle = MainFrame.AutoSellToggle
  34. local FastMineToggle = MainFrame.FastMineToggle
  35. local AutoMineToggle = MainFrame.AutoMineToggle
  36. local AutoBackpackToggle = MainFrame.AutoBackpackToggle
  37. local AutoToolsToggle = MainFrame.AutoToolsToggle
  38. local AutoRebirthToggle = MainFrame.AutoRebirthToggle
  39.  
  40. local AutoSellToggled = false
  41. local FastMineToggled = false
  42. local AutoMineToggled = false
  43. local AutoBackpackToggled = false
  44. local AutoToolsToggled = false
  45. local AutoRebirthToggled = false
  46.  
  47. local Remote = nil
  48.  
  49. local backpackModule = require(game.Lighting.Assets.Modules.BackpackModule)
  50.  
  51. local Network = {
  52.     cache = {}
  53. }
  54. local network = {}
  55. local network_mt = {}
  56. function network_mt:__index()
  57.     Network:FireServer("xd")
  58.     error("Read the rules", 2)
  59. end
  60. setmetatable(network, network_mt)
  61. function Network:Initialize()
  62.     local id = 0
  63.     local runs = 0
  64.     function key()
  65.         id = id + 1
  66.         if id > 100 then
  67.             id = 0
  68.         end
  69.         return 2654 * (id * 3)
  70.     end
  71.     function Network.new()
  72.         local remote, func = game.ReplicatedStorage.Network:InvokeServer()
  73.         runs = runs + 1
  74.         if runs >= 2 then
  75.             self:FireServer("KickSelf", "Bypassing Network")
  76.         end
  77.         Network.RemoteEvent = remote
  78.         Network.RemoteFunction = func
  79.     end
  80.     Network.new()
  81.     function Network:FireServer(name, ...)
  82.         self.RemoteEvent:FireServer(name, {
  83.             {
  84.                 ...
  85.             }
  86.         })
  87.     end
  88.     function Network:InvokeServer(name, ...)
  89.         return self.RemoteFunction:InvokeServer(name, {
  90.             {
  91.                 ...
  92.             }
  93.         }, key())
  94.     end
  95.     function self.RemoteFunction.OnClientInvoke(...)
  96.         return self:Function(...)
  97.     end
  98.     self.RemoteEvent.OnClientEvent:connect(function(...)
  99.         self:Function(...)
  100.     end)
  101.     Network.init = true
  102. end
  103. Network:Initialize()
  104.  
  105. local MetaTable = getrawmetatable(game)
  106. local game_namecall = MetaTable.__namecall
  107. pcall((setreadonly or make_writeable), MetaTable, false)
  108.  
  109. MetaTable.__namecall = function(self, ...)
  110. if Remote == nil then
  111.     local args = {...}
  112.     local method = table.remove(args)
  113.     if method == 'FireServer' then
  114.         self.Name = "CorrectRemote"
  115.         Remote = self
  116.         RemoteText.Text = "Remote Found!"
  117.     end
  118. end
  119. return game_namecall(self, ...)
  120. end
  121.  
  122. local function Raycast(Vector)
  123.     local Raycast = Ray.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector)
  124.     local Ignore = {game.Players.LocalPlayer.Character}
  125.     local Ore, endPoint = game.Workspace:FindPartOnRayWithIgnoreList(Raycast, Ignore)
  126.     if Ore then
  127.         if Ore.Parent.Parent.Name == "Blocks" then
  128.             local Arguments = {
  129.                     [1] = "MineBlock",
  130.                     [2] = {
  131.                         [1] = {
  132.                             [1] = Ore.Parent
  133.                         }
  134.                     }
  135.             }
  136.             Remote:FireServer(unpack(Arguments))
  137.         end
  138.     end
  139. end
  140.  
  141.  
  142. AutoSellToggle.MouseButton1Click:Connect(function()
  143.     if Remote == nil then
  144.     else
  145.         if AutoSellToggled == false then
  146.             AutoSellToggled = true
  147.             AutoSellToggle.Text = "Disable"
  148.             while AutoSellToggled do
  149.                 wait(1)
  150.                 local coins, inventory, equipped, ownedItems, offer, rebirths, skins, skinEquipped, pets, crates, favorites, hatInventory, wearing, visibleHats, eggHuntStuff, eggPackBought, quests, sortType, patriotBought, tokens, permanentItems, login, toolEnchantments, newQuests, lightPack, equippedAccessories, secProgression, trails, candyCorn, hauntedPack, darkPack, visibleAccessory, infernoPack = Network:InvokeServer("GetStats")
  151.                 local function inventoryContents()
  152.                     local num = 0
  153.                     for i = 1, #inventory do
  154.                         num = num + inventory[i][2]
  155.                     end
  156.                     return num
  157.                 end
  158.                 local Amount = inventoryContents()
  159.                 local Backpack = backpackModule[equipped[1]]
  160.                 if Amount == Backpack then
  161.                     local LastPosition = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  162.                     for i = 1, 25 do
  163.                     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-116, 13, 38)
  164.                    
  165.                     local Arguments = {
  166.                             [1] = "SellItems",
  167.                             [2] = {
  168.                                 [1] = {
  169.                                    
  170.                                 }
  171.                             }
  172.                     }
  173.                    
  174.                     Remote:FireServer(unpack(Arguments))
  175.                     wait(0.03)
  176.                     end
  177.                     for i = 1, 10 do
  178.                     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = LastPosition + Vector3.new(0,2,0)
  179.                     wait(0.03)
  180.                     end
  181.                 end
  182.             end
  183.         else
  184.             AutoSellToggled = false
  185.             AutoSellToggle.Text = "Enable"
  186.         end
  187.     end
  188. end)
  189.  
  190. FastMineToggle.MouseButton1Click:Connect(function()
  191.     if Remote == nil then
  192.     else
  193.         if FastMineToggled == false then
  194.             FastMineToggled = true
  195.             FastMineToggle.Text = "Disable"
  196.             for i,v in pairs(game.Workspace.Blocks:GetChildren()) do
  197.                 if v:FindFirstChild("Stats") then
  198.                     if v:FindFirstChild("Stats"):FindFirstChild("Multiplier") then
  199.                         v.Stats.Multiplier.Value = -1337
  200.                     end
  201.                 end
  202.             end
  203.         else
  204.             FastMineToggled = false
  205.             FastMineToggle.Text = "Enable"
  206.         end
  207.     end
  208. end)
  209.  
  210. AutoMineToggle.MouseButton1Click:Connect(function()
  211.     if Remote == nil then
  212.     else
  213.         if AutoMineToggled == false then
  214.             AutoMineToggled = true
  215.             AutoMineToggle.Text = "Disable"
  216.             while AutoMineToggled do
  217.                 for i = 1, 100 do
  218.                 Raycast(Vector3.new(5, 0, 0))
  219.                 Raycast(Vector3.new(-5, 0, 0))
  220.                 Raycast(Vector3.new(0, 0, 5))
  221.                 Raycast(Vector3.new(0, 0, -5))
  222.                 Raycast(Vector3.new(0, -5, 0))
  223.                 wait(0.1)
  224.                 end
  225.             end
  226.         else
  227.             AutoMineToggled = false
  228.             AutoMineToggle.Text = "Enable"
  229.         end
  230.     end
  231. end)
  232.  
  233. AutoBackpackToggle.MouseButton1Click:Connect(function()
  234.     if Remote == nil then
  235.     else
  236.         if AutoBackpackToggled == false then
  237.             AutoBackpackToggled = true
  238.             AutoBackpackToggle.Text = "Disable"
  239.             while AutoBackpackToggled do
  240.                 wait(3)
  241.                 for i = 1, 50 do
  242.                 if i == 2 then
  243.                 else
  244.                     local Arguments = {
  245.                             [1] = "BuyItem",
  246.                             [2] = {
  247.                                 [1] = {
  248.                                     [1] = "Backpack",
  249.                                     [2] = i
  250.                                 }
  251.                             }
  252.                     }
  253.                     Remote:FireServer(unpack(Arguments))
  254.                     wait(0.1)
  255.                     end            
  256.                 end
  257.             end
  258.         else
  259.             AutoBackpackToggled = false
  260.             AutoBackpackToggle.Text = "Enable"
  261.         end
  262.     end
  263. end)
  264.  
  265. AutoToolsToggle.MouseButton1Click:Connect(function()
  266.     if Remote == nil then
  267.     else
  268.         if AutoToolsToggled == false then
  269.             AutoToolsToggled = true
  270.             AutoToolsToggle.Text = "Disable"
  271.             while AutoToolsToggled do
  272.                 wait(3)
  273.                 for i = 1, 50 do
  274.                 local Arguments = {
  275.                         [1] = "BuyItem",
  276.                         [2] = {
  277.                             [1] = {
  278.                                 [1] = "Tools",
  279.                                 [2] = i
  280.                             }
  281.                         }
  282.                 }
  283.                 Remote:FireServer(unpack(Arguments))
  284.                 wait(0.1)
  285.                 end
  286.             end
  287.         else
  288.             AutoToolsToggled = false
  289.             AutoToolsToggle.Text = "Enable"
  290.         end
  291.     end
  292. end)
  293.  
  294.  
  295. AutoRebirthToggle.MouseButton1Click:Connect(function()
  296.     if Remote == nil then
  297.     else
  298.         if AutoRebirthToggled == false then
  299.             AutoRebirthToggled = true
  300.             AutoRebirthToggle.Text = "Disable"
  301.             while AutoRebirthToggled do
  302.                 wait(10)
  303.                 local Arguments = {
  304.                         [1] = "Rebirth",
  305.                         [2] = {
  306.                             [1] = {
  307.                                
  308.                             }
  309.                         }
  310.                 }
  311.                
  312.                 Remote:FireServer(unpack(Arguments))
  313.             end
  314.         else
  315.             AutoRebirthToggled = false
  316.             AutoRebirthToggle.Text = "Enable"
  317.         end
  318.     end
  319. end)
  320.  
  321. ExitButton.MouseButton1Click:Connect(function()
  322.     TopBar.Visible = false
  323.     OpenButton.Visible = true
  324. end)
  325. OpenButton.MouseButton1Click:Connect(function()
  326.     TopBar.Visible = true
  327.     OpenButton.Visible = false
  328. end)
  329.  
  330. game.Workspace.Blocks.ChildAdded:Connect(function(v)
  331.     if FastMineToggled then
  332.         local Stats = v:WaitForChild("Stats")
  333.         local Multiplier = Stats:WaitForChild("Multiplier")
  334.         if Stats and Multiplier then
  335.             Multiplier.Value = -1337
  336.         end
  337.     end
  338. end)
  339.  
  340.  
  341. My Video Link :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement