I have made one of my games on Roblox open source, and I wanted to share it in case anyone in the DevForum is seeking a project of this nature. The code is designed to be straightforward and easy to understand, "This resource may be particularly valuable for developers working on games that incorporate security features like a keycard system.
"
If you have any questions or suggestions for additional features, please feel free to respond to this post. π
There is a Main script and a module script, both of which have straightforward and easy-to-read layouts. I made an effort to simplify them as much as possible!
P.S IF YOU DONT HAVE A KEYCARD, THE DOOR WILL INDICATE RED AND PLAY A SOUND INDICATING THAT YOU DONT HAVE ACCESS TO THE DOOR. OTHERISE IF YOU DO, HAVE A KEYCARD THEN ITβLL DISPLAY GREEN AND OPEN THE DOORS AND PLAY A SOUND.
A Video Of How it works