House Explosion
House Explosion
House Explosion
Video Tutorial
Video Tutorial
Where to put the Script
Where to put the Script
In a script inside the part that will trigger the explosion
In a script inside the part that will trigger the explosion
Script
Script
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)