How to make attached bricks/meshes like this

Are you trying to make a lightning effect in general? If so try using this module, I’ve been using it recently and it has worked wonders.