Yu'll need to put your own XYZ in but, It works very cool just copy this command into 5 minecraft:command_block, but each command block need to be a different XYZ like this 571 16 -789 572 16 -790 572 16 -791 etc. the 16 stands for block hight.
When i do this ~ ~ ~ The first ~ stand for the X The second ~ stand for Y The third ~ stand for Z which make the XYZ
Hint hold left-shift and "click" F3 on your keyboard for you XYZ
If you do this right, It will set redstone_blocks in the air, leading were you want it to go to