> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/classes/constraint.md).

# Constraint

Constraint : `Instance`

## Overview

The base class for constraint-based instances

## Properties

### Attachment0

`Attachment`

Sets the first attachment point (Attachment0) for the constraint.

#### Code Samples

```lua
local LinearVelocity = script.Parent

LinearVelocity.Attachment0 = Attachment
```

### Attachment1

`Attachment`

Sets the second attachment point (Attachment1) for the constraint.

#### Code Samples

```lua
local LinearVelocity = script.Parent

LinearVelocity.Attachment1 = Attachment
```

### Enabled

`boolean`

Sets whether the constraint is active.

#### Code Samples

```lua
local LinearVelocity = script.Parent

LinearVelocity.Enabled = false
```

## Methods

## Events
