> For the complete documentation index, see [llms.txt](https://localbox.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://localbox.gitbook.io/docs/server-packets/joinroom.md).

# joinRoom

Documentation on the joinRoom packet sent by the client to the server.

### Description

This packet is sent by the client whenever a [World Trigger](/docs/classes/trigger.md#world-triggers) with a `joinRoom` property is collided with, and tells the server the new room the player should be put in. First, the client is sent a reciprocated packet specifying the [`Player Crumbs`](/docs/classes/player-crumb.md) in the room. Then, server propagates that event to all the other players in the current room telling them a certain player left, and propagates an event to the players in the new room that a certain player had joined.

### Parameters

| Key    | Type     | Description                                       |
| ------ | -------- | ------------------------------------------------- |
| roomId | `string` | The room ID of the new room to put the player in. |
