# Player.setCharacter

Sets the character the player is controlling.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
player:setCharacter( character )
```

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

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `player` | [Player](../Game-Script-Environment/Userdata/Player.md) | The player. |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character. |
