I have solved the question! I found that I was using the nil bomb to set the position when I should've used the newbomb. Thanks for trying!
Explosions disappear shortly after they are placed into workspace. You are doing
Local ex = Instance.new("Explosion", workspace) -- immediatly setting the parent ex.BlastPressure = 0 ex.BlastRadius = 35
The explosion doesnt have enough time to set its properties since it immediately gets destroyed when you create it Instead set the parent of the explosion after you've set the properties and it should work!
Local ex = Instance.new("Explosion") ex.BlastPressure = 0 ex.BlastRadius = 35 ex.Parent = workspace
As I have Answered from my comments; Line 22 is not being 'ignored' as you assume, comments
(The green '--' dashes/things), to lua, tell the code which code or chunk to ignore (or not run that code, in other words).
Also answered by my comments, your problem is that it is creating the Explosion, but, setting the Position AFTER it had exploded, as I have pointed out; "As the Lua 5.2 Programming book states: 'Lua attempts to run a chunk of code all at the same time, as if it's in one line', however, it does each one at a time." As it says, lua can not execute everything at once, no program can (no program that I'm aware of, that is) automatically execute everything at once on execution of the chunk, it can only execute each code individually, however, lua automatically (attempts) to run the code on execution of the chunk, so that it does give this effect, however, the reality is that lua is running each line of code separately, even putting the code in one line, it still applies as running each code (chunk) individually.
So, how to fix the code? Just set the code up so that the Position is set before the Child (Instance, or the explosion) has spawned;
-- This is an Example code, I am too tired to check your entire code for anymore errors and such, sorry. :( local Explosion = Instance.new("Explosion") --Do not put anything for the optional Argument; Leave it as it; Variable 'Explosion' is specifying the new 'Explosion' instance Explosion.Position = Vector3.new(math.random(50),math.random(50),math.random(50)) --This will set the 'Explosion''s Position property (the newly created explosion) to a Random Position (Random Vector3 Position) Explosion.Parent = game.Workspace --Now, when we set the 'Explosion''s Parent to 'game.Workspace', you'll see that it is a random spot (Position) each time
Sorry if this Answer sounds harsh, rude, or not-so-well explained, I started typing this while I was very tired. :(
Hope this helped at all!