# Joint.length

Returns the current length of a piston. The length is measured in blocks.

**Kind:** Member

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Userdata/Joint.md#length)

### Get

Returns the current length of a piston. The length is measured in blocks.

**Returns:**

| Type | Description |
| --- | --- |
| number | The piston's current length in blocks. |
