# sm.player.getHostPlayer

Returns the player of the game host.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.player.getHostPlayer(  )
```

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

**Returns:**

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