How to Create a Realistic Lightning Effect?

Would anyone know how to create or has a script for a lightning effect like this?

I have tried multiple times and failed each time, Im not the best with particles

This is my go-to for lightning effects;

It’s pretty performant and looks great.