# ShapeClass.maxParentCount

Sets the maximum number of allowed parent connections &ndash; the number of input connections. (Defaults to 0, no allowed parent connections)

**Kind:** Constant

**Environments:** Game

## Game

[Open the full Game reference](../Game-Script-Environment/Classes/ShapeClass.md#maxparentcount)

> **Note:**
> Implement [client_getAvailableParentConnectionCount](../Game-Script-Environment/Classes/ShapeClass.md#client_getavailableparentconnectioncount) to control specific types.

**Returns:**

| Type | Description |
| --- | --- |
| integer | &mdash; |
