API Functions
Listed here are all API functions, along with instructions on how to use them.
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.
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.
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.
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.
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.
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.
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.RewardThe 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.
SetPoints will overwrite any existing data. Please be careful with this command.
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.
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.
Arguments
Message
Type: String
Last updated