Collapse Sidebar




Determines the transparency of the Beam across its segments.

Beams and Transparency

This property is a DataType/NumberSequence, allowing the transparency to be configured to vary across the length of the Beam. Take for example the following DataType/NumberSequence.

local numberSequence = NumberSequence.new({
	NumberSequenceKeypoint.new(0, 1), -- transparent
	NumberSequenceKeypoint.new(0.5, 0), -- opaque
	NumberSequenceKeypoint.new(1, 1), -- transparent

Applying this DataType/NumberSequence to a Beam would yield the following result:

enter image description here

Note the Beam|Beam's transparency also depends on the number of Beam/Segments the Beam has. Each segment of the beam can only show a transition between two transparencies. Therefore a Beam will need to have at least n-1 segments in order to display correctly, where n is the number of DataType/NumberSequenceKeypoints in the DataType/NumberSequence

Code Samples

Creating a Beam From Scratch

​This code sample demonstrates how a Beam effect can be created from scratch by creating a Beam, setting all of its properties and configuring it’s Attachments. See below for an image of the final result:

enter image description here