Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would i make a good lightning effect?

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

✓ Accepted answer

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

3 comments

0

Oh my lord thank you.

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.

0

You totally nailed it.

This discussion is preserved as it was. New answers, comments, and votes are closed.