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!

2 comments

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

0

Thanks!