# Introduction

Welcome to the CheckMeIn Developer website. Here you can find API functions, examples and tutorials to enhance your CheckMeIn experience.

{% hint style="warning" %}
This website is currently under construction. You may find content is missing or incorrect. If you find any mistakes, please report them to wind\_o. Tim#6198.
{% endhint %}

{% content-ref url="/pages/-M7wSo4oGZTqN1o2uMRx" %}
[Getting Started](https://api.checkmein.cloud/getting-started)
{% endcontent-ref %}


# Getting Started

This guide will cover the basics of CheckMeIn's Plugin system.

{% hint style="warning" %}
The API functions are designed for programmers. If you do not know Lua, consider learning it through the [Developer Hub](https://developer.roblox.com/en-us/).
{% endhint %}

{% hint style="danger" %}
Make sure you have set up your system and that it is working before you start programming Plugins. [Manual](https://devforum.roblox.com/t/checkmein-3-1-manual/236337)
{% endhint %}

CheckMeIn has a rich API that can be accessed through Plugins. Making a plugin is quite simple.

1. Create a ModuleScript under Workspace.CheckMeIn.Plugins
2. Name it what you want
3. Paste the following template into the script

```lua
return{
['Enabled'] = true; -- Is this plugin enabled?
['Function'] = function(API)
-- Your code goes here
end}
```

At the start of the game, `Function` is called by the server, it will pass the `API` value which you can use to call API functions. To find out what functions there are, proceed to the next page.


# API Functions

Listed here are all API functions, along with instructions on how to use them.

{% hint style="info" %}
When an argument is **`bold`**, it is **required**.
{% endhint %}

### Open Door

{% tabs %}
{% tab title="Info" %}
`API.Doors.Open:Fire(Door)`

Opens the CheckMeIn door specified.

**Arguments**\
**`Door`** Type: Door Model
{% endtab %}

{% tab title="Example" %}

```lua
API.Doors.Open:Fire(workspace.CheckMeIn.Doors.Rooms['My Cool Room'])
```

{% endtab %}
{% endtabs %}

### Checked In

{% tabs %}
{% tab title="Info" %}
`API.Service.CheckedIn.Event:Connect(function(Employee, Player, Door)`

This event fires when a user is checked in.

{% hint style="info" %}

* This event fires when the employee who sent a check in request leaves the game before it is accepted. In this case, the employee property will be set to nil.
* This event fires when self check in is used. The employee property will be set to 'SCI' (string).
  {% endhint %}

**Return Values**\
`Employee` Type: Variable (Player, string or nil)\
`Player` Type: Player\
`Door` Type: Door Model
{% endtab %}

{% tab title="Example" %}

```lua
API.Service.CheckedIn.Event:Connect(function(Employee, Player, Door)
    if Employee then
        if type(Employee) == 'string' then
        -- You have now discovered the Player used Self Check In
        else
        -- You have now discovered Employee exists.
        end
    end
end)
```

{% endtab %}
{% endtabs %}

### Checked Out

{% tabs %}
{% tab title="Info" %}
`API.Service.CheckedOut.Event:Connect(function(Employee, Player, Door)`

This event fires when a user is checked out.

{% hint style="info" %}

* This event fires when players disconnect. The employee property will be set to 'DISCONNECT' (string).
* This event fires when the employee who sent a check out request leaves the game before it is accepted. In this case, the employee property will be set to nil.
* This event fires when self check out is used. The employee property will be set to 'SCI' (string).
  {% endhint %}

**Return Values**\
`Employee` Type: Variable (Player, string or nil)\
`Player` Type: Player\
`Door` Type: Door Model
{% endtab %}

{% tab title="Example" %}

```lua
API.Service.CheckedOut.Event:Connect(function(Employee, Player, Door)
    print(Player.Name .. ' was checked out.')
end)
```

{% endtab %}
{% endtabs %}

### Force Check In

{% tabs %}
{% tab title="Info" %}
`API.Service.ForceCheckIn:Fire(Player, RoomType)`

Forcefully checks specified player into specified RoomType. Ignores game pass requirements.

{% hint style="info" %}
When no room is available, this function will do nothing.
{% endhint %}

**Arguments**\
**`Player`** Type: Player\
**`RoomType`** Type: String (must be a valid room type, case sensitive)
{% endtab %}

{% tab title="Example" %}
See the Tutorial section for more advanced examples.

{% content-ref url="/pages/-M7wbdwqGco6OGN4gDmt" %}
[Roblox Premium Rooms](https://api.checkmein.cloud/tutorials/roblox-premium-rooms)
{% endcontent-ref %}

```lua
API.Service.ForceCheckIn:Fire(game.Players.wind_o,'Premium Suite')
```

{% endtab %}
{% endtabs %}

### Force Check Out

{% tabs %}
{% tab title="Info" %}
`API.Service.ForceCheckOut:Fire(Player)`

Forcefully checks out specified player.

{% hint style="info" %}
If `Player` is not checked in, this function will do nothing.
{% endhint %}

**Arguments**\
**`Player`** Type: Player
{% endtab %}

{% tab title="Example" %}

```lua
API.Service.ForceCheckOut:Fire(game.Players.wind_o)
```

{% endtab %}
{% endtabs %}

### ExceededLimit

{% tabs %}
{% tab title="Info" %}
`API.Service.ExceededLimit.Event:Connect(function(Player)`

This event fires when Player is spamming remote events. Exact configuration of the Cooldown system can be found here.

{% hint style="info" %}
You should read the Cooldown Service tutorial before using this function.
{% endhint %}

**Return Values**\
`Player` Type: Player
{% endtab %}
{% endtabs %}

### Get Points

{% tabs %}
{% tab title="Info" %}
`API.Web.GetPoints:Invoke(userId)`

Returns Points value of specified player.

**Arguments**\
**`userId`** Type: UserId\
**Return Values**\
`Points` Type: Integer (amount of points player has)
{% endtab %}

{% tab title="Example" %}

```lua
if API.Web.GetPoints:Invoke(game.Players.wind_o.UserId) > 100 then
    print('wind_o is rich!')
end
```

{% endtab %}
{% endtabs %}

### Reward Points

{% tabs %}
{% tab title="Info" %}
`API.Web.RewardPoints:Fire(userId, amount)`

Awards points to specified player.

{% hint style="info" %}

* When no `amount` is specified, the function will reward the normal amount of points, set in the Configuration module. This value can be found at Workspace.CheckMeIn.Configuration.Points.Reward
* The target player must be online in the server for this function to work.
  {% endhint %}

**Arguments**\
**`userId`** Type: UserId\
`amount` Type: Integer
{% endtab %}

{% tab title="Example" %}

```lua
API.Web.RewardPoints:Fire(game.Players.wind_o.UserId, 1337)
```

{% endtab %}
{% endtabs %}

### Set Points

{% tabs %}
{% tab title="Info" %}
`API.Web.SetPoints:Fire(userId, amount)`

Sets the Points value of the specified player.

{% hint style="danger" %}
**SetPoints will overwrite any existing data. Please be careful with this command.**
{% endhint %}

{% hint style="info" %}

* The target player must be online in the server for this function to work.
  {% endhint %}

**Arguments**\
**`userId`** Type: UserId\
**`amount`** Type: Integer
{% endtab %}

{% tab title="Example" %}

```lua
--Wind_o's been mean. He needs his points reset.
API.Web.SetPoints:Fire(game.Players.wind_o.UserId, 0)
```

{% endtab %}
{% endtabs %}

### Get Tutorial State

{% tabs %}
{% tab title="Info" %}
`API.Web.GetTutorialState(Player)`

Gets tutorial state (whether the CheckMeIn tutorial was completed) for the specified Player.

**Arguments**\
**`Player`** Type: Player\
**Return Values**\
`TutorialState` Type: Boolean
{% endtab %}

{% tab title="Example" %}

```lua
game.Players.PlayerAdded:Connect(function(Player)
    local TutorialState = API.Web.GetTutorialState:Invoke(Player)
    
    if not TutorialState then
    --CheckMeIn Tutorial not completed, perhaps show them the ropes
    --of the entire game?
    end
end)
```

{% endtab %}
{% endtabs %}

### Webhook

> Deprecated

{% tabs %}
{% tab title="Info" %}
`API.Web.Webhook:Fire(Message)`

Sends `Message` to your Discord Webhook.

{% hint style="danger" %}
**The Discord Webhook in CheckMeIn is deprecated and does not respect rate limits.**\
**Do not use this function to prevent your Discord account from being deleted.**
{% endhint %}

**Arguments**\
**`Message`** Type: String
{% endtab %}

{% tab title="Example" %}

```lua
API.Web.Webhook:Fire('Hello world!')
```

{% endtab %}
{% endtabs %}


# Roblox Premium Rooms

Increase Premium playtime by offering them an exclusive room, using the API. You can download the final plugin files at the bottom of this page.

## Setting up your Plugin

Setting up a plugin is fairly simple. Insert a ModuleScript into the `Workspace.CheckMeIn.Plugins` folder, name it what you want. Put in the following code:

```lua
return{
['Enabled'] = true; -- Is this plugin enabled?
['Function'] = function(API)
-- Your code goes here
end}
```

As you may notice, the script looks pretty empty right now. That's because we have not yet made a `Function` that will handle the check in process. There are numerous ways to handle the check in process. For the sake of this tutorial, I will explain 2 different approaches. Let's start with the first one:

### Checking in on spawn

This code will check in Roblox Premium players when they first load into the game.

```lua
game.Players.PlayerAdded:Connect(function(Player)
    coroutine.wrap(function() -- This runs the function in a seperate thread.
        repeat wait(1) until Player.Character -- Waits for the Player to spawn
        if Player.MembershipType == Enum.MembershipType.Premium then
            API.Service.ForceCheckIn:Fire(Player, 'Premium Suite')
        else
        -- You could show a pop up saying the player can get access
        -- to an exclusive room if they purchase Roblox Premium.
        end
    end)()
end)

--If the player buys premium while in-game, we should assign them a room.
game:GetService('Players').PlayerMembershipChanged:Connect(function(Player)
    API.Service.ForceCheckIn:Fire(Player, 'Premium Suite')
end)
```

Alternatively, you could process the check in when the Player presses a button.

### Checking in on button click

{% hint style="info" %}
Insert a part with a ClickDetector in it and modify the path in the following code snippet accordingly.
{% endhint %}

```lua
game.Workspace.PremiumRoom.ClickDetector.MouseClick:Connect(function(Player)
    if Player.MembershipType == Enum.MembershipType.Premium then
        API.Service.ForceCheckIn:Fire(Player, 'Premium Suite')
    else
        -- The player does not have Premium, so we will prompt them
        game:GetService('MarketplaceService'):PromptPremiumPurchase(Player)
    end
end)

--If the player buys premium while in-game, we should assign them a room.
game:GetService('Players').PlayerMembershipChanged:Connect(function(Player)
    API.Service.ForceCheckIn:Fire(Player, 'Premium Suite')
end)
```

This is just a simple example of what you can do with the `ForceCheckIn` function.\
Do you have suggestions for future tutorials? Let us know!\
\
**Plugin Files**

{% file src="/files/-M7wmwH7iSC2o5ayV0oh" %}
MouseClick Method
{% endfile %}

{% file src="/files/-M7wn4p32VByp2WI7OCs" %}
Spawn Method
{% endfile %}


# CooldownService

CooldownService tracks how often players call important CheckMeIn events. It then limits the amount of calls players can make, according to your Timer setting.

## How do I use it?

You don't have to do anything to start using CooldownService. It's bundled in the update that is currently rolling out. The default settings are as follows:\
`Timer: 5 seconds, AutoKick: false, LimitCount: 10`

`Timer` indicates how long players have to wait in between sending new requests to the server. With a value of 5, a player can only check someone in or out every 5 seconds.\
`LimitCount` indicates how many requests a player can send during one `Timer` before they are flagged as malicious.\
`AutoKick` indicates whether a player should be KICKED from the game in the event they try to call a request more than `LimitCount` times, within the `Timer` time.\
Example: If you send more than 10 requests in the 5 second timer period, you get kicked.

Finally, we have a new API function to go along with this update: [`API.Service.ExceededLimit`](https://api.checkmein.cloud/api-functions#exceededlimit) This event will fire when a player exceeds the configured limit. You can use this function to alert staff, auto ban or anything you want.

## **How to configure CooldownService**

CooldownService is an add-on scripted in the same way as CheckMeIn 4.0, this means it is not compatible with the 3.1 configuration module. You will have to change the configuration through a CheckMeIn Plugin.

1\. Create a [**ModuleScript** ](https://developer.roblox.com/en-us/api-reference/class/ModuleScript)under the Workspace.CheckMeIn.Plugins folder.\
2\. Paste the following code:

```lua
--[[
Cooldown Configuration
CMI 3.1
Written by wind_o
--]]

local Timer = 5
local LimitCount = 10
local AutoKick = false

--Debug Option--
local Echo = false


-- Do not edit below --

return{
['Enabled'] = true; -- Is this plugin enabled?
['Function'] = function(API)
	API.Service.ModifyCooldownService:Fire('Timer', Timer);
	API.Service.ModifyCooldownService:Fire('LimitCount', LimitCount);
	API.Service.ModifyCooldownService:Fire('AutoKick', AutoKick);
	API.Service.ModifyCooldownService:Fire('Echo', Echo);
end}
```

3\. Modify the Timer, LimitCount and AutoKick options to your liking.


# Getting Started

```lua
local API = _G.CheckMeIn.API
```


# API Functions

Listed here are all API functions, along with instructions on how to use them.

{% hint style="warning" %}
Example code currently not implemented.
{% endhint %}

## Service

{% tabs %}
{% tab title="Info" %}

```lua
require(API.Functions.Service):ForceCheckIn(Target, Type, overrideGamepass, Num)
```

Tries checking Target into a room. Ignores game pass requirements of the room type.

Arguments:

**Player** `Target`

**String, Room Type** `Type`

**Bool, optional** `overrideGamepass`when set to true, game pass requirements of the room type are ignored.

**Room Number, optional** `Num`

Returns:

`Table` of format `{true, Instance Room}` or `{false, string errorCode}`

Room is a folder containing all information about the given room. See Database section for more information.
{% endtab %}

{% tab title="Error Codes" %}
`alreadyCheckedIn`

Given when the Player `Target` is already checked in.

`noRoomAvailable`

Given when no room is available.

`noGamepass`

Given when the required game pass is not owned by Player `Target`.

`insufficientArgs`

Given when the function is called with insufficient arguments.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Functions.Service):ForceCheckOut(Target)`

Tries checking out Player `Target`

Arguments:

Player `Target`

Returns:

Bool `Success`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}

```lua
API.Functions.Service.CheckedIn.Event
```

BindableEvent fired when a player is checked in

Arguments:

Player `Target` that was checked in

Player or String `Employee`

Room `Room`

{% hint style="danger" %}
When the player is checked out by the server (for example using ForceCheckOut or on leave), Employee is set to the string 'Server'\
When a player checks out using the self check out, Employee is set to the string 'Self'
{% endhint %}
{% endtab %}

{% tab title="Example" %}

```lua
API.Functions.Service.CheckedIn.Event:Connect(function(Target, Employee, Room)
    if typeof(Employee) == "Player" then
        print(Target.Name + " was checked in by " + Employee.Name)
        print("They now have room " + Room.Number.Value)
    end
end)
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}

```lua
API.Functions.Service.CheckedOut.Event
```

BindableEvent fired when a player is checked out

Arguments:

Player `Target` that was checked out

Player or String `Employee`

Room `Room` that the player was checked into

{% hint style="danger" %}
When the player is checked out by the server (for example using ForceCheckOut or on leave), Employee is set to the string 'Server'\
When a player checks out using the self check out, Employee is set to the string 'Self'
{% endhint %}
{% endtab %}

{% tab title="Example" %}

```lua
API.Functions.Service.CheckedOut.Event:Connect(function(Target, Employee, Room)
    if typeof(Employee) == "Player" then
        print(Target.Name + " was checked out by " + Employee.Name)
    end
end)
```

{% endtab %}
{% endtabs %}

## Doors

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Doors):OpenPlyr(Player, Door)`

Sends a request to open a door on behalf of Player `Player`. It will close after the Timer for the specified door has elapsed.

Arguments:

Player `Player`

Instance `Door` model found in CheckMeIn.Doors.Rooms or CheckMeIn.Doors.Custom

Note that the door will only open if `Player` has permission to open it.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Doors):Open(Door)`

Opens the specified door. It will close after the Timer for the specified door has elapsed.

Arguments:

Instance `Door` model found in CheckMeIn.Doors.Rooms or CheckMeIn.Doors.Custom
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Doors):ToggleDnD(Room, newValue)`

Sets the Do not Disturb value for room `Room` to `newValue`.

Arguments:

Instance `Room`

Bool `newValue`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Doors):TogglePM(Room, newValue)`

Sets the Private Mode value for room `Room` to `newValue`.

Arguments:

Instance `Room`

Bool `newValue`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

## Room Database

{% hint style="info" %}
In this section, Instance `Room` is referring to the database entry of a room. To learn more about this, refer to the Database page.
{% endhint %}

{% content-ref url="/pages/wgv2H5eEvkC7nZ5gxxy0" %}
[Database](https://api.checkmein.cloud/checkmein-4.0/database)
{% endcontent-ref %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Database):GetPlayerRoom(Player)`

Finds the room of Player `Player`.

Arguments:

Player `Player`

Returns:

Instance `Room` or `false` if Player is not checked in

Room is a folder containing all information about the given room. See Database section for more information.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Database):IsRoommate(Player, Room)`

Checks whether Player `Player` is a roommate of Instance `Room`.

Arguments:

Player `Player`

Instance `Room`

Room is a folder containing all information about the given room. See Database section for more information.

Returns:

Bool `isRoommate`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Database):GetAvailableRooms()`

Gets a list of available rooms

Returns:

Table containing a `Room` instance for every available room

Room is a folder containing all information about the given room. See Database section for more information.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Database):GetDatabaseEntry(roomDoor)`

Finds the database entry (`Room`) from a room door model

Arguments:

Instance `roomDoor` this has to be a room door model, located in the Rooms folder.

Returns:

Instance `Room` or `false` if the specified room door is not valid.

Room is a folder containing all information about the given room. See Database section for more information.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

## Points System

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Points):AwardPoints(Player, dontRunFunction)`

Awards `Reward` points to Player `Player`. `Reward` can be found in the Enterprise options ModuleScript. If `dontRunFunction` is `true`, the `Function` in the Enterprise options ModuleScript will not be fired afterwards.

Arguments:

Player `Player`

Bool `dontRunFunction` optional
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}

```lua
require(API.Services.Points):GetPoints(Player)
```

Gets the current point value of Player `Player`.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Points):SetPoints(Player, Amount, dontRunFunction)`

Sets Player `Player`'s points value to `Amount`. If `dontRunFunction` is `true`, the `Function` in the Enterprise options ModuleScript will not be fired afterwards.

Arguments:

Player `Player`

Bool `dontRunFunction` optional
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

## Tutorial State

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Points):SetTutorialState(Player, newValue)`

Sets the tutorial state of Player `Player` to `newValue.`

Arguments:

Player `Player`

Bool `newValue`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Points):GetTutorialState(Player)`

Returns the tutorial state of Player `Player`.

Arguments:

Player `Player`

Returns:

Bool `completedTutorial`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

## GroupService Cache

CheckMeIn 4.0 uses http requests to get up-to-date player ranks. These results are then cached by the system to limit the amount of http requests used.&#x20;

{% hint style="info" %}
Cache entries for individual players are removed automatically when they leave the game.
{% endhint %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Cache):ClearCache()`

Removes cached calls that returned `false`, meaning players who were not authorized will be checked again after this function runs.

{% hint style="info" %}
ClearCache() is automatically called by the system every 5 minutes.
{% endhint %}
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Cache):DeleteCache()`

Removes all cached calls, meaning that all players will be checked again, even if they were authorized before.
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Cache):IsReceptionist(Player)`

Checks whether Player `Player` has receptionist permissions, as set in your `Options` ModuleScript.

Arguments:

Player `Player`

Returns:

Bool `isReceptionist`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Cache):IsStaff(Player)`

Checks whether Player `Player` has staff permissions, as set in your `Options` ModuleScript.

Arguments:

Player `Player`

Returns:

Bool `isStaff`
{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Info" %}
`require(API.Services.Cache):IsAuthorized(Player, customPermissions)`

Checks whether Player `Player` is authorized based on the supplied `customPermissions`. This function can be used to get up-to-date ranks from players. The result will automatically be cached by CheckMeIn.

Arguments:

Player `Player`

Dictionary`customPermissions` see custom permissions tab

Returns:

Bool `isAuthorized`
{% endtab %}

{% tab title="Custom Permissions" %}

```lua
--Custom Permissions syntax
customPermissions = {}
customPermissions.UserIds = {} -- You can enter a list of authorized user ids here.
customPermissions.Group = 1234 -- Group ID
customPermissions.Minimum = 1 -- Minimum rank that gets authorized
customPermissions.RankTable = {1, 2, ..., 255} -- Table of ranks that are authorized
--Please note that you can only use RankTable OR Minimum, not both.
```

{% endtab %}

{% tab title="Example" %}

{% endtab %}
{% endtabs %}


# Database

CheckMeIn 4.0 uses an internal database to keep track of all rooms. Explained on this page is how the database is structed, and what you can do with it.

For each room in your game, a folder will be created. This folder contains all useful data about the room.

Each entry (Instance `Room`) contains:

* ObjectValue `Occupant`\
  *contains the room owner or nil if the room is unoccupied*
* BoolValue `DnD`\
  *contains the do not disturb value of the room*
* BoolValue `PrivateMode`\
  *contains the private mode value of the room (allows only room owner and roommates to enter)*
* BoolValue `Debounce`\
  *this value is true while the room door is opened*
* NumberValue `Number`\
  *contains the room number of the room*
* StringValue `Type`\
  *contains the room type of the room*
* NumberValue `Timer`\
  *contains the timer value of the room (amount in seconds the door remains open)*
* ObjectValue `Reference`\
  *contains a reference to the room door model belonging to this room*
* Folder `Roommates`\
  *contains the list of roommates of this room (ObjectValues containing the Players)*

{% hint style="warning" %}
To prevent unexpected behavior, do not change or add to these values directly through your own code. Consider them read-only. Use the supplied [API Functions](https://api.checkmein.cloud/checkmein-4.0/api-functions) instead.
{% endhint %}


