API Functions

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

circle-info

When an argument is bold, it is required.

Open Door

API.Doors.Open:Fire(Door)

Opens the CheckMeIn door specified.

Arguments Door Type: Door Model

Checked In

API.Service.CheckedIn.Event:Connect(function(Employee, Player, Door)

This event fires when a user is checked in.

circle-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).

Return Values Employee Type: Variable (Player, string or nil) Player Type: Player Door Type: Door Model

Checked Out

API.Service.CheckedOut.Event:Connect(function(Employee, Player, Door)

This event fires when a user is checked out.

circle-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).

Return Values Employee Type: Variable (Player, string or nil) Player Type: Player Door Type: Door Model

Force Check In

API.Service.ForceCheckIn:Fire(Player, RoomType)

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

circle-info

When no room is available, this function will do nothing.

Arguments Player Type: Player RoomType Type: String (must be a valid room type, case sensitive)

Force Check Out

API.Service.ForceCheckOut:Fire(Player)

Forcefully checks out specified player.

circle-info

If Player is not checked in, this function will do nothing.

Arguments Player Type: Player

ExceededLimit

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.

circle-info

You should read the Cooldown Service tutorial before using this function.

Return Values Player Type: Player

Get Points

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)

Reward Points

API.Web.RewardPoints:Fire(userId, amount)

Awards points to specified player.

circle-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.

Arguments userId Type: UserId amount Type: Integer

Set Points

API.Web.SetPoints:Fire(userId, amount)

Sets the Points value of the specified player.

triangle-exclamation
circle-info
  • The target player must be online in the server for this function to work.

Arguments userId Type: UserId amount Type: Integer

Get Tutorial State

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

Webhook

Deprecated

API.Web.Webhook:Fire(Message)

Sends Message to your Discord Webhook.

triangle-exclamation

Arguments Message Type: String

Last updated