Skip to main content
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.
Ideally, run this library before the obfuscated code (the Luarmor loadstring), so you can handle invalid or expired keys yourself, for example by showing the error message to the user instead of kicking them or crashing the client. It works well together with the 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: