I used a piece of code from another question here so I could make explosive bricks, but I modified it and cant seem to get it to constantly repeat explosions.
local currentlyDelaying = false -- Don't touch this.
if currentlyDelaying == false then
repeat
local exp = Instance.new("Explosion", script.Parent)
exp.BlastPressure = 750000 -- The pressure of the explosion
exp.BlastRadius = 5 -- The radius of the explosion
exp.DestroyJointRadiusPercent = 400 -- The radius of where joints are destroyed upon impact
exp.ExplosionType = Enum.ExplosionType.Craters -- What type of explosion do you want? Craters, CratersAndDebris, or NoCraters.
exp.Position = script.Parent.Position -- The position of the explosion
exp.Visible = false -- If the explosion can be seen
wait(0.1)
until wait(10)
script.Parent:Destroy()
end

2 comments
instead of repeat, put while true do.
but then how would i make the until still work?