This shows you all your scratch username and password needs!
Step 1: How to Make LOCKS on Scratch
In this you will learn about any basic lock you can use on Scratch. The lock types are shown below
-username and password lock
Step 2: Username/password Lock
Just copy the script below and tweak it a bit to your needs and you have got yourself a password lock!
Step 3: Other
You can also make a keypad and send a broadcast message every time it's clicked and it can add the order to a variable!