local button = script.Parent
local house = game.Workspace.BasicFamilyHome
local canBoom = true
local function boom(otherPart)
local partParent = otherPart.Parent
local humanoid = partParent:FindFirstChildWhichIsA('Humanoid')
if humanoid and canBoom then
canBoom = false
for num, child in pairs(house:GetChildren()) do
if child:IsA('Part') then
local explosion = Instance.new('Explosion')
explosion.Parent = game.Workspace
child.Anchored = false
explosion.Position = child.Position
end
end
wait(3)
canBoom = true
end
end
button.Touched:Connect(boom)