Cinema 4d the flash lightning

Hi was just wondering I have been trying to figure this out for a while does anyone know how to do the flash lightning effects from the tv show and how to do it in cinema 4d as seen loads of people do it on YouTube but no tutorials and can’t figure it out how to do it please get back to me many thx or maybe in after effects using particular either one but love to see how to do it