# GuiInterface.setHost

Sets a [Character](../Game-Script-Environment/Userdata/Character.md) as host for a world gui

**Kind:** Function

**Environments:** Game

## Game

### Overload 1

``` { .lua .api-signature }
guiInterface:setHost( character, joint? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#sethost-character-string-optional)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character to host the gui |
| `joint` *(optional)* | string | The joint (Optional) |

### Overload 2

``` { .lua .api-signature }
guiInterface:setHost( shape, joint? )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/GuiInterface.md#sethost-shape-string-optional)

**Availability:** Client only

Sets a [Shape](../Game-Script-Environment/Userdata/Shape.md) as host for a world gui

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `gui` | [GuiInterface](../Game-Script-Environment/Userdata/GuiInterface.md) | The Gui interface |
| `shape` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The shape to host the gui |
| `joint` *(optional)* | string | The joint (Optional) |
