Click to Explode

Explode Clicked Part

local part = script.Parent
local click = part.ClickDetector

local function explode()
    local explosion = Instance.new("Explosion")
    explosion.Parent = game.Workspace
    explosion.Position = part.Position
end

click.MouseClick:Connect(explode)

Explode Other Part

local part = script.Parent
local explodePart = game.Workspace.explodePart
local click = part.ClickDetector

local function explode()
    local explosion = Instance.new("Explosion")
    explosion.Parent = game.Workspace
    explosion.Position = explodePart.Position
end

click.MouseClick:Connect(explode)

Explode Model

local part = script.Parent
local house = game.Workspace.BasicFamilyHome
local click = part.ClickDetector

local function explode()
    for _, part in pairs(house:GetChildren()) do
        if part:IsA('Part') or part:IsA('UnionOperation')then
            part.Anchored = false
            local explosion = Instance.new("Explosion")
            explosion.Parent = game.Workspace
            explosion.Position = part.Position
        end
    end
end

click.MouseClick:Connect(explode)