Color Sequence

Repeat the correct color pattern to proceed.

-- Color Sequence Lock
RegisterCommand('testcolor', function()
    local correctSequence = {"red", "blue", "green", "yellow"} -- Color sequence
    exports['moon-ui']:OpenColorSequenceLock(correctSequence, function(success)
        if success then
            print('Color sequence correct! Access granted.')
            -- Add your logic here for successful sequence entry
        else
            print('Color sequence incorrect! Access denied.')
            -- Add your logic here for failed sequence entry
        end
    end)
end)

Last updated