How to make a working 4-digit code! Difficulty: 3/10

When I was looking around the forums, there was many code options, but no 4-digit codes, so I went ahead and made one!

What is a 4-digit code?
A 4-digit code is a code that many locks use. Think of it like a “bike lock” so that no one will steal your bike, or an escape room code, so that you won’t be able to progress further until you know the code.

What you can use with codes.
With codes, you can use many things! In real life, they are used so that people won’t get into stuff, or just for a fun game! While you are making this (If you are going to make this), think of what you could use it for.

How to make a 4-digit code
Resources:
What will you need for this? You will need:
4 Properties,
4 Counters,
4 Triggers or Buttons,
1 Checker.

Step 1
First, get out all of the devices like this. (You do not need to put them in this order, but it looks better this way) I will be using triggers for my code, but feel free to use buttons. (I forgot the checker here, but I will add it later on.)
Code Setup

Step 2
Use wires to connect all of the triggers/buttons to their respective counter, and make sure it is selected to count up.

Step 3
To make the counters reset when they get above 9, we need channels. Use a separate channel for each, and call them whatever you want, and put them in both target and reset counter. (Make sure the target is set to 10!)

Step 4
Now, test it to see if the looping of numbers works. If it works, great! Now we need to connect each of the counters to the properties. I would just name them #1, #2, #3, and #4. (Make sure that the properties are numbers and not text!)

Step 5
In the checker, make the number of checks equal to 4. In each of the checks, make it check properties, and make them equal to whatever number you want (I am going to make my code 1214) (Make sure that the checker’s pass condition is “All checks must pass”).

Step 6
Make a way to check the code, like a separate trigger or button. I am just going to make a repeater check every 0.5s, and a barrier block a path. Use wires or broadcasts, (I used broadcasts because they take up less space).

I hope this was useful!

16 Likes

Nice guide! How does your repeater check for the correct code? My best guess is that it checks for 1000 times Property 1 + 100 times Property 2 + 10 times Property 3 + Property 4 in a trigger, but feel free to enlighten me!

3 Likes

Welcome to the forums, @Dragons_Bane! It’s always nice to see that a new user’s first post is a guide!

Don’t forget to check out the new-user-must-read and forum-tips tag.

While you’re at it, I suggest also reading the

TOS and FAQ.

If you need help with anything, just ask!

After all, this is a Community Forum :slight_smile: !

4 Likes

Welcome to the forum and nice first guide! I hope you like it here!

(all you after all, this is a community forum copycats)

2 Likes

Nice guide! This could probably be used for among-us

I was doing it to mimic people that constantly copy and paste that everywhere.
*cough, Haiasi, cough * :face_with_thermometer: :sneezing_face:

2 Likes

Oh yeah, I’ll link it in my guide and they could probably adjust it for six digits

1 Like

If you use this guide, can’t you make a 5-digit code and beyond?

All Haiasi did was copy my stuff and put it in a different format

3 Likes

It checks the code by using the checker and the properies

Yes, it can have inf as long as numbers goes

1 Like

It is! Almost every time someone’s first post is a guide, they end up going on to do something!

3 Likes

I do like it here, thank you! :slight_smile:

1 Like

Nice guide! It’s pretty clever. Anyway, welcome to the forum, and I hope you have fun here!

3 Likes

I can also make a simple voting system if needed

1 Like

No, I mean how does it check the code, AND which device. Like, this checker checks for all four properties, and if any of them are wrong, it fails.

2 Likes

It checks if each property is the right number, for example:
Property #1 has to be 1
Property #2 has to be 2
Property #3 has to be 8
and so on, so forth

2 Likes
What difficulty should this be
  • 1/10
  • 2/10
  • 3/10
  • 4/10
  • 5/10
  • 6/10
  • 7/10
  • 8/10
  • 9/10
  • 10/10
0 voters

nice guide!!!

Welcome to the forums @Dragons_Bane !

1 Like

Do randomizers work for it?

Wdym by that? Like code randomizers?

1 Like