Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I be able to create a lightning bolt using a script?

Asked by
Ghost40Z 118
3 years ago
Edited 3 years ago

I am creating a lightning attack but I wanted to create a realistic looking lightning bolt instead of a cube stretching in a straight line.

What equation can I use to achieve this? Any examples are welcome :) Thanks in advance.

Edit: I've found a great video on youtube that helped me achieve this. Here's the link to the video!

0
Either use a lot of math like I did, or use a trail which makes it far easier, or use this beautiful lightning module https://devforum.roblox.com/t/effect-lightning-beams-seamless-smooth-and-procedurally-animated-with-beam-like-properties/843534 greatneil80 2647 — 3y
0
Thanks! Ghost40Z 118 — 3y

Answer this question