The Trail object is used to create a trail like an effect between two points. As the points move through space a texture is drawn on the plane the points define. This is commonly used to create effects to help visualize movements like tracer trails behind projectiles, footprints, tire tracks, and many other similar effects.





When a Trail is active it will record the position of it’s Trail/Attachment0 every frame. It then connects these positions to where the attachments were in the previous frame, creating a polygon. That polygon is then filled in with the Trail’s Trail/Color and Trail/Texture (if that Texture exists). Each segment drawn in this way will eventually fade based on the TrailEffect’s Trail/Lifetime .

Creating Trails

In order for a Trail to work properly, it must be a descendant of the `Workspace` and its attachment properties (`Trail/Attachment0` and `Trail/Attachment1`) must be set to two unique Attachments. Once this has been done the effect will create a trail as soon as either of its attachments moves.