I made a script, it shoots a part, the part welds to what ever it hits, wait 5 seconds, and then explodes. Unfortunately, it isn't blowing up! Why not? Here is my script
function onTouched(hit)
local weld = Instance.new ("Weld")
weld.Parent = hit
weld.Part0 = script.Parent
weld.Part1 = hit
wait(5)
--not my part
ex = Instance.new("Explosion")--Create An Explosion
ex.Position = script.Parent.Position --The Explosions Position Is The Brick
ex.BlastRadius = 2 --A 5 by 5 Explosion.
ex.Parent = script.Parent --You got to be able to see it.
--my part again
hit:BreakJoints()
script.Parent:Remove()
end
connection = script.Parent.Touched:connect(onTouched)
Please help!!! Thank you!!! --this is in a regular script, should it be in local?

8 comments
Any output?
no that is the problem!
You forgot to set C0 and C1 after line 5, that could be the problem.
Not setting those properties shouldn't matter. The bricks will simply have the exact same CFrame. @yogi; Add some print statements before and after the
wait(5). Are any of them working?yes, all of them are working
@adark The exact reason why he mightn't be able to see an explosion.
Ah, I see.
How do i fix it then?