# PathNode.connect

Create a PathNode connection

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
pathNode:connect( to )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `from` | [PathNode](../Game-Script-Environment/Userdata/PathNode.md) | PathNode to create connection from |
| `to` | [PathNode](../Game-Script-Environment/Userdata/PathNode.md) | PathNode to create connection to |
