# sm.portal.createPortal

Creates a new portal.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.portal.createPortal( dimensions )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.portal.md#createportal)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `dimensions` | [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The dimensions of the portal box. |

**Returns:**

| Type | Description |
| --- | --- |
| [Portal](../Game-Script-Environment/Userdata/Portal.md) | The created portal. |
