local P=game:GetService("Players")local p=P.LocalPlayer
local S=Instance.new("ScreenGui")S.Name="BreakMapMenu"S.ResetOnSpawn=false;S.Parent=p:WaitForChild("PlayerGui")
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
local U1=Instance.new("UICorner")U1.CornerRadius=UDim.new(0,12)U1.Parent=F
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
local U2=Instance.new("UICorner")U2.CornerRadius=UDim.new(0,12)U2.Parent=B
local a=0.015 local b=0.02
local function c()
if not p then return nil end
local function d(x)
for _,y in ipairs(x:GetChildren())do
if y:IsA("Tool")then
local r=y:FindFirstChildWhichIsA("RemoteEvent",true)
if r then return r end
end
end
return nil
end
local ch=p.Character
if ch then local r=d(ch) if r then return r end end
local bp=p:FindFirstChild("Backpack")
if bp then local r=d(bp) if r then return r end end
return nil
end
local function e()
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
end
local function f()
while true do
local r=c()
if r then
local ps=e()
for _,q in ipairs(ps)do
pcall(function() r:FireServer(q) end)
task.wait(a)
end
end
task.wait(b)
end
end
B.MouseButton1Click:Connect(function() task.spawn(f) end)
p.CharacterAdded:Connect(function() task.wait(0.4) end)
if p.Character then else p.CharacterAdded:Connect(function() end) end