# sm.localPlayer.getWorld

Gets the world the local player's character is in, if any, otherwise nil.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.localPlayer.getWorld(  )
```

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

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| [World](../Game-Script-Environment/Userdata/World.md) | The world the local player is in, if any. |
