Vanihgol33

Menu Spider Mine

Nov 10th, 2025
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.95 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local player = Players.LocalPlayer
  4.  
  5. local ScreenGui = Instance.new("ScreenGui")
  6. ScreenGui.Name = "MainMenu"
  7. ScreenGui.ResetOnSpawn = false
  8. ScreenGui.Parent = game.CoreGui
  9.  
  10. local Frame = Instance.new("Frame")
  11. Frame.Size = UDim2.new(0, 220, 0, 260)
  12. Frame.Position = UDim2.new(0.5, -110, 0.5, -130)
  13. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  14. Frame.Active = true
  15. Frame.Draggable = true
  16. Frame.Parent = ScreenGui
  17. Instance.new("UICorner", Frame).CornerRadius = UDim.new(0, 12)
  18.  
  19. local ToggleButton = Instance.new("TextButton", Frame)
  20. ToggleButton.Size = UDim2.new(1, 0, 0, 25)
  21. ToggleButton.Position = UDim2.new(0, 0, 0, 0)
  22. ToggleButton.Text = "▲"
  23. ToggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  24. ToggleButton.TextColor3 = Color3.fromRGB(0, 255, 0)
  25. ToggleButton.Font = Enum.Font.GothamBold
  26. ToggleButton.TextSize = 20
  27.  
  28. local function makeButton(text, color, order)
  29.     local btn = Instance.new("TextButton")
  30.     btn.Size = UDim2.new(1, -20, 0, 35)
  31.     btn.Position = UDim2.new(0, 10, 0, 30 + (order - 1) * 45)
  32.     btn.BackgroundColor3 = color
  33.     btn.TextColor3 = Color3.fromRGB(0, 0, 0)
  34.     btn.Font = Enum.Font.GothamBold
  35.     btn.TextSize = 18
  36.     btn.Text = text
  37.     btn.Parent = Frame
  38.     Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
  39.     return btn
  40. end
  41.  
  42. local ESPButton = makeButton("ESP", Color3.fromRGB(0, 255, 0), 1)
  43. local HealButton = makeButton("AutoHeal", Color3.fromRGB(0, 255, 0), 2)
  44. local DrillButton = makeButton("Drill", Color3.fromRGB(0, 255, 0), 3)
  45. local BreakButton = makeButton("Break Map", Color3.fromRGB(255, 0, 0), 4)
  46.  
  47.  
  48. local espEnabled = false
  49. local highlights = {}
  50. local spiderColors = {
  51.     ["Arachnid"] = Color3.fromRGB(255, 255, 255),
  52.     ["Jumper"] = Color3.fromRGB(255, 255, 0),
  53.     ["Bomber"] = Color3.fromRGB(255, 0, 0)
  54. }
  55.  
  56. local function createHighlight(model, color)
  57.     if not model or highlights[model] then return end
  58.     local h = Instance.new("Highlight")
  59.     h.FillColor = color
  60.     h.OutlineColor = color
  61.     h.FillTransparency = 0.7
  62.     h.OutlineTransparency = 0
  63.     h.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  64.     h.Parent = model
  65.     highlights[model] = h
  66. end
  67.  
  68. local function refreshESP()
  69.     for m,h in pairs(highlights) do
  70.         if not h.Parent then highlights[m] = nil end
  71.     end
  72.     for _, obj in ipairs(workspace:GetDescendants()) do
  73.         if obj:IsA("Model") then
  74.             for name, col in pairs(spiderColors) do
  75.                 if string.find(obj.Name, name) then
  76.                     createHighlight(obj, col)
  77.                 end
  78.             end
  79.         end
  80.     end
  81. end
  82.  
  83. workspace.DescendantAdded:Connect(function(obj)
  84.     if espEnabled and obj:IsA("Model") then
  85.         for name, col in pairs(spiderColors) do
  86.             if string.find(obj.Name, name) then
  87.                 createHighlight(obj, col)
  88.             end
  89.         end
  90.     end
  91. end)
  92.  
  93. ESPButton.MouseButton1Click:Connect(function()
  94.     espEnabled = not espEnabled
  95.     ESPButton.BackgroundColor3 = espEnabled and Color3.fromRGB(255, 255, 0) or Color3.fromRGB(0, 255, 0)
  96.     if espEnabled then
  97.         task.spawn(function()
  98.             while espEnabled do
  99.                 refreshESP()
  100.                 task.wait(1)
  101.             end
  102.         end)
  103.     else
  104.         for _, h in pairs(highlights) do
  105.             if h then h:Destroy() end
  106.         end
  107.         highlights = {}
  108.     end
  109. end)
  110.  
  111.  
  112. local healEnabled = false
  113. local function startHealLoop()
  114.     task.spawn(function()
  115.         while healEnabled do
  116.             local pl = player
  117.             local char = pl and pl.Character
  118.             if char then
  119.                 local bp = pl:FindFirstChild("Backpack")
  120.                 local med = char:FindFirstChild("Medkit") or (bp and bp:FindFirstChild("Medkit"))
  121.                 if med then
  122.                     if bp and med.Parent == bp and char:FindFirstChild("Humanoid") then
  123.                         char.Humanoid:EquipTool(med)
  124.                         task.wait(0.05)
  125.                     end
  126.                     local remote = med:FindFirstChild("RemoteEvent")
  127.                     if remote then
  128.                         pcall(function() remote:FireServer() end)
  129.                     end
  130.                 end
  131.             end
  132.             task.wait(0.05)
  133.         end
  134.     end)
  135. end
  136.  
  137. HealButton.MouseButton1Click:Connect(function()
  138.     healEnabled = not healEnabled
  139.     HealButton.BackgroundColor3 = healEnabled and Color3.fromRGB(255, 255, 0) or Color3.fromRGB(0, 255, 0)
  140.     if healEnabled then
  141.         startHealLoop()
  142.     end
  143. end)
  144.  
  145.  
  146. local drillEnabled = false
  147. local function startDrillLoop()
  148.     task.spawn(function()
  149.         while drillEnabled do
  150.             local char = player and player.Character
  151.             if char and char:FindFirstChild("HumanoidRootPart") then
  152.                 local bp = player:FindFirstChild("Backpack")
  153.                 local drill = char:FindFirstChild("Drill") or (bp and bp:FindFirstChild("Drill"))
  154.                 if drill then
  155.                     if bp and drill.Parent == bp and char:FindFirstChild("Humanoid") then
  156.                         char.Humanoid:EquipTool(drill)
  157.                         task.wait(0.05)
  158.                     end
  159.                     local remote = drill:FindFirstChild("RemoteEvent")
  160.                     if remote and char:FindFirstChild("HumanoidRootPart") then
  161.                         local root = char.HumanoidRootPart
  162.                         local forward = root.CFrame.LookVector
  163.                         local center = root.Position + forward * 4.5
  164.                         local boxCFrame = CFrame.new(center, center + forward)
  165.                         local parts = workspace:GetPartBoundsInBox(boxCFrame, Vector3.new(9, 9, 6))
  166.                         for _, part in ipairs(parts) do
  167.                             if part and part.Name == "Dirt" and not part:IsDescendantOf(char) then
  168.                                 pcall(function() remote:FireServer(part) end)
  169.                             end
  170.                         end
  171.                     end
  172.                 end
  173.             end
  174.             RunService.Heartbeat:Wait()
  175.         end
  176.     end)
  177. end
  178.  
  179. DrillButton.MouseButton1Click:Connect(function()
  180.     drillEnabled = not drillEnabled
  181.     DrillButton.BackgroundColor3 = drillEnabled and Color3.fromRGB(255, 255, 0) or Color3.fromRGB(0, 255, 0)
  182.     if drillEnabled then
  183.         startDrillLoop()
  184.     end
  185. end)
  186.  
  187.  
  188. local function startBreakMap()
  189.     local a, b = 0.015, 0.02
  190.     local function findRemote()
  191.         local function checkIn(obj)
  192.             for _, y in ipairs(obj:GetChildren()) do
  193.                 if y:IsA("Tool") then
  194.                     local r = y:FindFirstChildWhichIsA("RemoteEvent", true)
  195.                     if r then return r end
  196.                 end
  197.             end
  198.             return nil
  199.         end
  200.         local ch = player.Character
  201.         if ch then local r = checkIn(ch) if r then return r end end
  202.         local bp = player:FindFirstChild("Backpack")
  203.         if bp then local r = checkIn(bp) if r then return r end end
  204.         return nil
  205.     end
  206.     local function getParts()
  207.         local t = {}
  208.         for _, v in ipairs(workspace:GetDescendants()) do
  209.             if v:IsA("BasePart") and not v:IsDescendantOf(player.Character or {}) then
  210.                 table.insert(t, v)
  211.             end
  212.         end
  213.         return t
  214.     end
  215.     task.spawn(function()
  216.         while true do
  217.             local r = findRemote()
  218.             if r then
  219.                 local parts = getParts()
  220.                 for _, p in ipairs(parts) do
  221.                     pcall(function() r:FireServer(p) end)
  222.                     task.wait(a)
  223.                 end
  224.             end
  225.             task.wait(b)
  226.         end
  227.     end)
  228. end
  229.  
  230. BreakButton.MouseButton1Click:Connect(function()
  231.     startBreakMap()
  232. end)
  233.  
  234.  
  235. local collapsed = false
  236. ToggleButton.MouseButton1Click:Connect(function()
  237.     collapsed = not collapsed
  238.     ToggleButton.Text = collapsed and "▼" or "▲"
  239.     for _, child in ipairs(Frame:GetChildren()) do
  240.         if child:IsA("TextButton") and child ~= ToggleButton then
  241.             child.Visible = not collapsed
  242.         end
  243.     end
  244.     Frame.Size = collapsed and UDim2.new(0, 220, 0, 25) or UDim2.new(0, 220, 0, 260)
  245. end)
Tags: Roblox Script
Advertisement
Add Comment
Please, Sign In to add comment