# type

Returns the type of an object as a string. This includes standard Lua types and userdata types specific to this API.

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
type( object )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/Global.md#type)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `object` | any | The object instance. |

**Returns:**

| Type | Description |
| --- | --- |
| string | The object type. |

## Terrain

``` { .lua .api-signature }
type( object )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/Global.md#type)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `object` | any | The object instance. |

**Returns:**

| Type | Description |
| --- | --- |
| string | The object type. |
