Hello, in the following script how can I convert it to just explode the named brick? I tried changing the name of the part and the following script, yet it seems to explode randomly some where else?
01 | function onClicked() |
02 | local deer = Instance.new( "Explosion" ) -- IT DOES NOT HAVE TO BE "E" IT CAN BE ANY LETTER. I JUST LIKE USING THIS |
03 |
04 | deer.BlastRadius = 10 --THE RADIUS, THE BIGGER THE RADIUS, THE BIGGER IT IS |
05 |
06 | deer.BlastPressure = 99999 -- THE BLAST PRESSURE IS HOW POWERFUL IT IS. THE HIGHER, THE MORE DEADLY AND THE MORE UNANCHORED BRICKS WILL GO FLYING |
07 |
08 | deer.Parent = game.Workspace |
09 |
10 | deer.Position = script.Parent.Parent.door.Position |
11 | end |
12 |
13 | script.Parent.ClickDetector.MouseClick:connect(onClicked) |