Trail¶
Not yet Class
Used to create a trail effect between two attachments.
Not implemented yet
Trail rendering is not implemented.
Workaround: Spawn short-lived parts or use a ParticleEmitter.
0 Nova members · 24 modern Roblox members not implemented yet
Description¶
The Trail object is used to create a trail effect between two attachments. As the attachments move through space, a texture is drawn on their defined plane. This is commonly used to create effects that visualize movements like tracer trails behind projectiles, footprints, tire tracks, and similar effects.
See Trails for more information.
Inheritance¶
Properties¶
| Member | Signature | Summary |
|---|---|---|
Attachment0 |
Attachment0: Attachment |
Along with Attachment1, determines where the trail will start drawing its segments. |
Attachment1 |
Attachment1: Attachment |
Along with Attachment0, determines where the trail will start drawing its segments. |
Brightness |
Brightness: float |
Scales the light emitted from the trail when LightInfluence is less than 1. |
Color |
Color: ColorSequence |
The color of the trail throughout its lifetime. |
Enabled |
Enabled: bool |
Determines whether the trail will be drawn or not. |
FaceCamera |
FaceCamera: bool |
Determines whether the trail will always face the camera, regardless of its orientation. |
Lifetime |
Lifetime: float |
Determines how long each segment in a trail will last, in seconds. |
LightEmission |
LightEmission: float |
Determines to what degree the colors of the trail are blended with the colors behind it. |
LightInfluence |
LightInfluence: float |
Determines the degree to which the trail is influenced by the environment's lighting. |
LocalTransparencyModifier |
LocalTransparencyModifier: float |
Determines a multiplier for Trail.Transparency that is only visible to the local client. |
MaxLength |
MaxLength: float |
Sets the maximum length of the trail. |
MinLength |
MinLength: float |
Sets the minimum length of the trail. |
Texture |
Texture: ContentId |
The content ID of the texture to be displayed on the trail. |
TextureContent |
TextureContent: Content |
The texture displayed on the trail. Supports asset URIs. |
TextureLength |
TextureLength: float |
Sets the length of the trail's texture, dependent on TextureMode. |
TextureMode |
TextureMode: TextureMode |
Determines the manner in which the Texture scales, repeats, and moves along with the trail's attachments. |
Transparency |
Transparency: NumberSequence |
Sets the transparency of the trail's segments over its Lifetime. |
WidthScale |
WidthScale: NumberSequence |
Scales the width of the trail over the course of its lifetime. |
Methods¶
| Member | Signature | Summary |
|---|---|---|
Clear |
Trail:Clear(): null |
Clears the segments of the trail. |
Events¶
| Member | Signature | Summary |
|---|---|---|
OnClearRequested |
OnClearRequested() |
— |
Roblox reference: Trail
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.