API Functions
Listed here are all API functions, along with instructions on how to use them.
Open Door
API.Doors.Open:Fire(Door)
Opens the CheckMeIn door specified.
Arguments
Door Type: Door Model
API.Doors.Open:Fire(workspace.CheckMeIn.Doors.Rooms['My Cool Room'])Checked In
API.Service.CheckedIn.Event:Connect(function(Employee, Player, Door)
This event fires when a user is checked in.
Return Values
Employee Type: Variable (Player, string or nil)
Player Type: Player
Door Type: Door Model
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)Checked Out
API.Service.CheckedOut.Event:Connect(function(Employee, Player, Door)
This event fires when a user is checked out.
Return Values
Employee Type: Variable (Player, string or nil)
Player Type: Player
Door Type: Door Model
API.Service.CheckedOut.Event:Connect(function(Employee, Player, Door)
print(Player.Name .. ' was checked out.')
end)Force Check In
API.Service.ForceCheckIn:Fire(Player, RoomType)
Forcefully checks specified player into specified RoomType. Ignores game pass requirements.
Arguments
Player Type: Player
RoomType Type: String (must be a valid room type, case sensitive)
See the Tutorial section for more advanced examples.
Roblox Premium RoomsAPI.Service.ForceCheckIn:Fire(game.Players.wind_o,'Premium Suite')Force Check Out
API.Service.ForceCheckOut:Fire(Player)
Forcefully checks out specified player.
Arguments
Player Type: Player
API.Service.ForceCheckOut:Fire(game.Players.wind_o)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.
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)
if API.Web.GetPoints:Invoke(game.Players.wind_o.UserId) > 100 then
print('wind_o is rich!')
endReward Points
API.Web.RewardPoints:Fire(userId, amount)
Awards points to specified player.
Arguments
userId Type: UserId
amount Type: Integer
API.Web.RewardPoints:Fire(game.Players.wind_o.UserId, 1337)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.
Arguments
userId Type: UserId
amount Type: Integer
--Wind_o's been mean. He needs his points reset.
API.Web.SetPoints:Fire(game.Players.wind_o.UserId, 0)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
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)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
API.Web.Webhook:Fire('Hello world!')Last updated