How to make lightning?

How could i make lightning bolts come from the sky? I think jailbreak has something like this. I looked around on the internet and the dev fourm for things like this i found a few things, but i couldn’t really understand anything because i know very little about scripting.

1 Like

There are actually two libraries that people have created to make this easier

and

4 Likes

I would recommend this, it works perfectly.

2 Likes

Hmm i don’t know how to use module scripts, i have never used any.

Documentation for ModuleScripts is available here:

Most module scripts come with some kind of directions as well.

If you want to experiment yourself, a quick and dirty way to do this would be to store points along a line between two points, then applying a random offset to each point (along with some modulation, like a sine curve if you want the lightning to ‘curve’ towards the target), then using these points to reconstruct the path of the lightning.