Trail property sets how much the
Trail/Color|Colors of the trail are blended with the colors behind them. LightEmission uses additive blending to combine the colors, meaning the RGB values of the colors are added together to determine the displayed color. This addition is weighted by the value of LightEmission.
When changed this property instantly affects all particles owned by the emitter, both current and future particles.
This property is not related to the dynamic lighting engine of Roblox. If you need your trail to emit light, it is recommended to create parts with
PointLight that follow the path of the trail.
Creating a Trail that Emits Light
This example demos the functionality of the light emission property of the trail object.
In order to do this, we must first create a
BasePart, part, which will be the parent of the trail.
Then, we create two attachments, attachment0 and attachment1, both parented to part. The positions of these two attachments, more importantly the distance between them, determines where the trail is drawn as part moves.
For these attachments to create a trail as described, we create a new Trail and parent it to part. We then connect attachment0 to
Trail/Attachment0 and attachment1 to
In this example, we set the light emission to 1, the maximum possible value on a scale from 0 to 1. While this example does not create a part, containing a
PointLight, that follows the trail around, it is recommended to do so.
Finally, to demo the trail’s light emission, the example relies on
TweenService/Create to move part back and forth. As the part moves, the trail is drawn.
The gif below demonstrates the expected output of this example.