In most cases, you don’t need to check the key yourself, because Luarmor-protected scripts already have a built-in whitelist that kicks the user if their key is invalid.If you want to check a key in advance (before the whitelist runs) so the user isn’t kicked for an invalid key, use this key check library.
LRM_INIT_SCRIPT macro. For a ready-made key input GUI, you can use this template. To check keys from outside of Roblox (e.g. your own website or app), see the external key check API instead.
Here’s how to import and use it:
Library methods
Possible status codes
check_key always returns a table with a code and a message.
KEY_VALID data fields
When the code is KEY_VALID, the table also includes a data field with these fields:
