# ClientScriptableObject.getWorld

Returns the worldId of a client scriptable object.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
clientScriptableObject:getWorld( scriptableObject )
```

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

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `scriptableObject` | [ScriptableObject](../Game-Script-Environment/Userdata/ScriptableObject.md) | The scriptable object. |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | The world. |
