How to make an lighting bolt effect

How i should do an lighting bolt effect like this ?, but obviusly randomized

Image by @Wyzloc

One way that I could think of doing this is generating Attachments on a consistently moving x-axis or whatever direction you want, and then randomizing the position on one of the other axis’.

Example newLightningBoltAttachment =,math.random(-5,5),0)

While you generate these attachments, you can also generate Trails connecting each attachment to eachother to visualize the actual lightning bolt effect.

So it would look like this:

1 Like

This article should provide some information on lightning.

1 Like

Here is another option:

1 Like

Saw it many times, thanks for answering tho, and for this option