# Interactable.getPistons

Returns a table of [pistons](../Game-Script-Environment/Userdata/Joint.md) that an interactable is connected to.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
interactable:getPistons(  )
```

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable. |

**Returns:**

| Type | Description |
| --- | --- |
| table | A table of the connected [pistons](../Game-Script-Environment/Userdata/Joint.md) \{[Joint](../Game-Script-Environment/Userdata/Joint.md), ..\}. |
