# 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

`bool`

Sets whether the constraint is active.

#### Code Samples

```lua
local LinearVelocity = script.Parent

LinearVelocity.Enabled = false
```

## Methods

## Events
