---
description: Unscramble the jumbled word to unlock access.
---

# Anagram

<figure><img src="https://3546595727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoRne7ThJaBZiwCpSKT7V%2Fuploads%2FBE4zG91wyucMmyXtV8Cd%2Fimage-removebg-preview.png?alt=media&#x26;token=16bc94ac-679b-46e4-8097-4f98fce1c7d9" alt=""><figcaption></figcaption></figure>

```lua
-- Anagram Lock
RegisterCommand('testanagram', function()
    -- Difficulty can be 'easy', 'medium', or 'hard'
    exports['moon-ui']:OpenAnagramLock('medium', function(success)
        if success then
            print('Anagram solved! Access granted.')
        else
            print('Anagram incorrect! Access denied.')
        end
    end)
end)
```
