I recently made a module for a morph I’m making and decided to make the module public, as I know at one time I was looking for a simple lightning module like this years ago.
This lightning module is really easy to set up and has a ton of customizability.
Module Link: https://create.roblox.com/store/asset/127372428591811/EasyBolt
EX:
local EasyBolt = require(path.to.module)
local Template: EasyBolt.LightningTemplate = EasyBolt.GetDefaultTemplate()
Template.Start = workspace.PointStart.Position
Template.End = workspace.PointEnd.Position
-- Template holds all of the Properties for the bolt, the majority of the properties customizable will be below this code snippet --
EasyBolt.New(Template)
A bunch of customization that comes with this model are:
- Change the amount of spread bolts to the sides.,
- The number of bolt segments.,
- The size of the bolt at the start and end of its lifetime.,
- Duration of the bolts.,
- The TweenInfo on the bolts.,
- Randomly selected colors for the bolt.
- Can be made to make each segment randomly colored instead of the whole bolt.,
- Have a delay time between each bolt,
- Be able to give it a custom part to use for each bolt segment,
- Be able to give the bolt a custom parent when created,
- Be able to have a table of instances copied into each bolt,
- Have the bolt fire a Bindable Event or Remote Event when the bolt connects fully (only useful for a bolt with a DelayTime higher than 0)
Though this module may not be the best, it’s still, in my opinion, a really nice tool to have for bolt-related things, if anybody has coding tips or optimization tips for this module I’d love to hear them.
Some examples of this module being used:
Full list of customizability:
