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

How would i make a good lightning effect?

Asked by 8 years ago

So what I'm trying to do is rather simple(to most). How would i make randomly generated parts with random, but connecting, rotations. I want this formula to generate parts from source A to Target A no matter the size between them. I was thinking about using ray casting to do this. It most like will to the player's mouse position on the screen from their torso or something like that. How exactly would i go about doing this? Any tips? What methods should i use?

1 answer

Log in to vote
2
Answered by 8 years ago

Since I hadn't made something like this myself yet, I wanted to give it a try. Made a little module, and commented it so it makes bit more sense.

Here is the module: http://hastebin.com/qozumahewi.lua

0
Oh my lord thank you. koolkid8099 705 — 8y
0
I had the right concept in mind but i just couldn't get the math right for going on about it. This is amazing, thanks. koolkid8099 705 — 8y
0
You totally nailed it. koolkid8099 705 — 8y
Ad

Answer this question