[Effect] v1.1 Lightning Beams: Seamless, smooth and procedurally animated with beam-like properties

I’d need to see your code and how you’re interacting with the module

1 Like

Well, whenever I press L key to use the force lightning on the target but it not show anything it supposed to show up the lightning bolts parts on both r15 hands and on the victim target humanoid root part but it keep show error a world position nils in the lightning bolt module.

Also here a link to my topic it’ll show everything in there.

I’ll post code here once I get home from work today.

wow! Looks amazing! But im not able to get it to work. I’ve copied the script completely, but pressing play doesnt do anything. Clicking the “Run” button, however, makes it work fine. Any fix for this?

The script you’re using is a server script correct? Change it to a local script and then it should work.

I think they mean something like this:

The lightning takes a while to get back to the part if it is moved

Use an Attachment Instance stored in a BasePart within the club as Attachment0

Do you mean something like this? Capture
Because this is what I’m using currently

Use your club.Attachment1 as the first input of LightningBolt.new and make sure you’re not using what I described in comments as a “fake attachment” which involves creating a table with similar properties to an Attachment → By using a “real” attachment Instance, Roblox automatically updates WorldPosition whenever the Part parent of the attachment moves

Ok so I did that, but now it doesn’t go all around the club it just follows the beam

Imagine how many AMVs you can create with these! :shock:

1 Like

Do you think it’s because of the a1-a2 part of the script , because in the original script it was two parts not attachments

Am I supposed to destroy the bolt afterwards when using PartCache? I’m getting this error when I do:

PartCache:141: Attempted to return part "BoltPart" (Workspace.Effects.BoltPart) to the cache, but it's not in-use! Did you call this on the wrong part?

How do you control the color? Are you able to make the color depend on the beam part itself?

Where i can get the sparks and explosion modules ,i cant find them

This module is epic! When can we use Lightning Explosion?

I would also like to know this! I use this module in a new game of mine, and they’re amazing, they do cause a little bit of noticeable lag (from using the old one) but they are just SO cool I decided to implement them anyway.

(Players love it)

How would i go about making a lightning aura, like a stream of lightning that just goes around a players arm or such.

Great Module, but if too many Effects are cast at the same time, the delete loop will fail to delete some of the Parts, leaving random bits of lightning around there, permanently.

Any way to fix this? the part script uses too many parts, a loop for auto-deletion of parts that exist for more than X time is also too expensive, considering the modules easily creates Hundreds of Parts.

Those random bits of lightning are sourced from a PartCache which you set at the top through the variable PARTS_IN_CACHE with how many you want to store in a cache. The idea is that Parts never get destroyed or re-parented preventing extra performance load but that instead Parts become recycled and re-used.

Also, not sure what you mean by “a loop for auto-deletion of parts that exist for more than X time is also too expensive”. No deletion takes place or did you mean something else?

I Meant a custom loop for auto-deletion of those parts is client-expensive.

i patched it up already, but from time to time i still see some parts left permanently there, don’t know it if was a Studio Bug, but it did happen a lot, through restarts.

its not a real problem for me anymore, so, yeah.