# Interactable.getParents

Returns a table of parent [interactables](../Game-Script-Environment/Userdata/Interactable.md) that are connected to an interactable. The parents act as the interactable's input.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable. |
| `flags` | integer | Connection type flags filter. (default to all types) |

**Returns:**

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