# sm.localPlayer.getPlayer

Returns the player object of the local player.

**Kind:** Function

**Environments:** Game

## Game

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

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

**Availability:** Client only

**Returns:**

| Type | Description |
| --- | --- |
| [Player](../Game-Script-Environment/Userdata/Player.md) | The player object. |
