LandMine = script.Parent
enabled = false
function onTouched(hit) if enabled == false then explosion = Instance.new("Explosion") explosion.BlastRadius = 10 explosion.BlastPressure = 200000 explosion.Position = script.Parent.Position explosion.Parent = Workspace LandMine.Transparency = 1 LandMine.CanCollide = false script.Parent.Parent:GetChildren().Anchored = false enabled = true end end
LandMine.Touched:connect(onTouched)
Everything works fine except for the part whereby when it explodes, it is suppose to un-anchor all the bricks, but it doesn't work when I try it out. (Line 14). Help appreciated. Thanks!

1 comment
Code block please!