Converting a block into a falling block

Im trying to make a "shockwave" effect that creates waves in the ground by using falling blocks but the issue is I cant figure out how todo it. I can't seem to either store the id of the blocks being affected then create corresponding falling blocks or convert blocks into falling blocks. Help would be greatly appreciated.

Continue to help post