Skip to content
Roblox API Reference

Trail

Used to create a trail effect between two attachments.
Memory category
Instances
Own members
20
Inherited members
75
Subclasses
0
Siblings
608

Properties41

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byTrail18

Property categoryAppearance

  • Trail.Brightness: number = 1
    Scales the light emitted from the trail when LightInfluence is less than 1.
    • Read capabilities: Basic
  • Trail.Color: ColorSequence = 0 1 1 1 0 1 1 1 1 0
    The color of the trail throughout its lifetime.
    • Read capabilities: Basic
  • Trail.FaceCamera: boolean = false
    Determines whether the trail will always face the camera, regardless of its orientation.
    • Read capabilities: Basic
  • Trail.LightEmission: number = 0
    Determines to what degree the colors of the trail are blended with the colors behind it.
    • Read capabilities: Basic
  • Trail.LightInfluence: number = 0
    Determines the degree to which the trail is influenced by the environment's lighting.
    • Read capabilities: Basic
  • Trail.LocalTransparencyModifier: number = 0
    Determines a multiplier for Trail.Transparency that is only visible to the local client.
    • Hidden
    • Not replicated
    • Read capabilities: Basic
  • Trail.Texture: string = ""
    The content ID of the texture to be displayed on the trail.
    • Read capabilities: Basic
  • Trail.TextureContent: Content
    The texture displayed on the trail. Supports asset URIs (opens in a new tab).
    • Capabilities: Basic
  • Trail.TextureLength: number = 1
    Sets the length of the trail's texture, dependent on TextureMode.
    • Read capabilities: Basic
  • Determines the manner in which the Texture scales, repeats, and moves along with the trail's attachments.
    • Read capabilities: Basic
  • Trail.Transparency: NumberSequence = 0 0.5 0 1 0.5 0
    Sets the transparency of the trail's segments over its Lifetime.
    • Read capabilities: Basic

Property categoryData

  • Trail.Attachment0: Attachment
    Along with Attachment1, determines where the trail will start drawing its segments.
    • Read capabilities: Basic
  • Trail.Attachment1: Attachment
    Along with Attachment0, determines where the trail will start drawing its segments.
    • Read capabilities: Basic

Property categoryEmission

  • Trail.Enabled: boolean = true
    Determines whether the trail will be drawn or not.
    • Read capabilities: Basic
  • Trail.Lifetime: number = 2
    Determines how long each segment in a trail will last, in seconds.
    • Read capabilities: Basic
  • Trail.MaxLength: number = 0
    Sets the maximum length of the trail.
    • Read capabilities: Basic
  • Trail.MinLength: number = 0.100000001
    Sets the minimum length of the trail.
    • Read capabilities: Basic
  • Trail.WidthScale: NumberSequence = 0 1 0 1 1 0
    Scales the width of the trail over the course of its lifetime.
    • Read capabilities: Basic

Methods43

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byTrail1
  • Trail:Clear()
    Clears the segments of the trail.
    • Capabilities: Basic

Events11

Inherited fromObject1
Inherited fromInstance9
Defined byTrail1