# Trail

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/Trail/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/Trail

Used to create a trail effect between two attachments.

## Properties

### Brightness

```luau
Trail.Brightness: number = 1
```

- Tags: Read capabilities: Basic

Scales the light emitted from the trail when [`LightInfluence`](https://rapi.sleaze.dev/classes/Trail.md) is less than 1.

### Color

```luau
Trail.Color: ColorSequence = 0 1 1 1 0 1 1 1 1 0
```

- Tags: Read capabilities: Basic

The color of the trail throughout its lifetime.

### FaceCamera

```luau
Trail.FaceCamera: boolean = false
```

- Tags: Read capabilities: Basic

Determines whether the trail will always face the camera, regardless of its orientation.

### LightEmission

```luau
Trail.LightEmission: number = 0
```

- Tags: Read capabilities: Basic

Determines to what degree the colors of the trail are blended with the colors behind it.

### LightInfluence

```luau
Trail.LightInfluence: number = 0
```

- Tags: Read capabilities: Basic

Determines the degree to which the trail is influenced by the environment's lighting.

### LocalTransparencyModifier

```luau
Trail.LocalTransparencyModifier: number = 0
```

- Tags: Hidden, Not replicated, Read capabilities: Basic

Determines a multiplier for [`Trail.Transparency`](https://rapi.sleaze.dev/classes/Trail.md) that is only visible to the local client.

### Texture

```luau
Trail.Texture: string = ""
```

- Tags: Read capabilities: Basic

The content ID of the texture to be displayed on the trail.

### TextureContent

```luau
Trail.TextureContent: Content
```

- Tags: Capabilities: Basic

The texture displayed on the trail. Supports [asset URIs](https://create.roblox.com/docs/projects/assets#asset-uris).

### TextureLength

```luau
Trail.TextureLength: number = 1
```

- Tags: Read capabilities: Basic

Sets the length of the trail's texture, dependent on [`TextureMode`](https://rapi.sleaze.dev/classes/Trail.md).

### TextureMode

```luau
Trail.TextureMode: Enum.TextureMode = Enum.TextureMode.Stretch
```

- Tags: Read capabilities: Basic

Determines the manner in which the [`Texture`](https://rapi.sleaze.dev/classes/Texture.md) scales, repeats, and moves along with the trail's attachments.

### Transparency

```luau
Trail.Transparency: NumberSequence = 0 0.5 0 1 0.5 0
```

- Tags: Read capabilities: Basic

Sets the transparency of the trail's segments over its [`Lifetime`](https://rapi.sleaze.dev/classes/Trail.md).

### Attachment0

```luau
Trail.Attachment0: Attachment
```

- Tags: Read capabilities: Basic

Along with [`Attachment1`](https://rapi.sleaze.dev/classes/Trail.md), determines where the trail will start drawing its segments.

### Attachment1

```luau
Trail.Attachment1: Attachment
```

- Tags: Read capabilities: Basic

Along with [`Attachment0`](https://rapi.sleaze.dev/classes/Trail.md), determines where the trail will start drawing its segments.

### Enabled

```luau
Trail.Enabled: boolean = true
```

- Tags: Read capabilities: Basic

Determines whether the trail will be drawn or not.

### Lifetime

```luau
Trail.Lifetime: number = 2
```

- Tags: Read capabilities: Basic

Determines how long each segment in a trail will last, in seconds.

### MaxLength

```luau
Trail.MaxLength: number = 0
```

- Tags: Read capabilities: Basic

Sets the maximum length of the trail.

### MinLength

```luau
Trail.MinLength: number = 0.100000001
```

- Tags: Read capabilities: Basic

Sets the minimum length of the trail.

### WidthScale

```luau
Trail.WidthScale: NumberSequence = 0 1 0 1 1 0
```

- Tags: Read capabilities: Basic

Scales the width of the trail over the course of its lifetime.

## Methods

### Clear

```luau
Trail:Clear()
```

- Tags: Capabilities: Basic

Clears the segments of the trail.

## Events

### OnClearRequested

```luau
Trail.OnClearRequested: RBXScriptSignal<()>
```

- Tags: Hidden, Capabilities: Basic

## Inherited members

- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
