Vanihgol33

Delet map

Nov 9th, 2025
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.84 KB | None | 0 0
  1. local P=game:GetService("Players")local p=P.LocalPlayer
  2. local S=Instance.new("ScreenGui")S.Name="BreakMapMenu"S.ResetOnSpawn=false;S.Parent=p:WaitForChild("PlayerGui")
  3. local F=Instance.new("Frame")F.Size=UDim2.new(0,200,0,60)F.Position=UDim2.new(0.4,0,0.3,0)F.BackgroundColor3=Color3.fromRGB(0,0,0)F.Active=true;F.Draggable=true;F.Parent=S;F.BackgroundTransparency=0.2;F.BorderSizePixel=0
  4. local U1=Instance.new("UICorner")U1.CornerRadius=UDim.new(0,12)U1.Parent=F
  5. local B=Instance.new("TextButton")B.Size=UDim2.new(1,-20,1,-20)B.Position=UDim2.new(0,10,0,10)B.Text="Break Map"B.BackgroundColor3=Color3.fromRGB(0,200,0)B.TextColor3=Color3.fromRGB(255,255,255)B.Font=Enum.Font.GothamBold;B.TextScaled=true;B.Parent=F;B.BorderSizePixel=0
  6. local U2=Instance.new("UICorner")U2.CornerRadius=UDim.new(0,12)U2.Parent=B
  7.  
  8. local a=0.015 local b=0.02
  9.  
  10. local function c()
  11.  if not p then return nil end
  12.  local function d(x)
  13.   for _,y in ipairs(x:GetChildren())do
  14.    if y:IsA("Tool")then
  15.     local r=y:FindFirstChildWhichIsA("RemoteEvent",true)
  16.     if r then return r end
  17.    end
  18.   end
  19.   return nil
  20.  end
  21.  local ch=p.Character
  22.  if ch then local r=d(ch) if r then return r end end
  23.  local bp=p:FindFirstChild("Backpack")
  24.  if bp then local r=d(bp) if r then return r end end
  25.  return nil
  26. end
  27.  
  28. local function e()
  29.  local t={} for _,v in ipairs(workspace:GetDescendants())do if v:IsA("BasePart") and not v:IsDescendantOf(p.Character or {}) then t[#t+1]=v end end return t
  30. end
  31.  
  32. local function f()
  33.  while true do
  34.   local r=c()
  35.   if r then
  36.    local ps=e()
  37.    for _,q in ipairs(ps)do
  38.     pcall(function() r:FireServer(q) end)
  39.     task.wait(a)
  40.    end
  41.   end
  42.   task.wait(b)
  43.  end
  44. end
  45.  
  46. B.MouseButton1Click:Connect(function() task.spawn(f) end)
  47. p.CharacterAdded:Connect(function() task.wait(0.4) end)
  48. if p.Character then else p.CharacterAdded:Connect(function() end) end
Advertisement
Add Comment
Please, Sign In to add comment