# World.id

Returns the id of a world.

**Kind:** Member

**Environments:** Game, Terrain

## Game

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

### Game Get

Returns the id of a world.

**Returns:**

| Type | Description |
| --- | --- |
| integer | The world's id. |

## Terrain

[Open the full Terrain reference](../Terrain-Script-Environment/Userdata/World.md#id)

### Terrain Get

Returns the id of a world.

**Returns:**

| Type | Description |
| --- | --- |
| integer | The world's id. |
