Skip to content

Easy Locks

Child of the Beast edited this page Feb 18, 2022 · 11 revisions

Everything on the script has tooltips so if you ever forget what something does, just hover over the name and it'll tell you! This page is ment to go over things in more detail than the tooltips.

Easy Locks

Easy locks is meant to be a user friendly script that allows you to toggle objects on and off. Any objects that the lock toggles, gets a line drawn to it in-editor NOT in game.

line draw example

Settings

Is Global - If 'is Global' is True then this toggles for everyone

Is Master Only - If 'is Master Only' is True then the lock can only be used by the room master. Use Username ignores this.

Use Usernames - 'Use Usernames' has 3 settings, (0) Off, (1) MasterOnly Bypass and (2) Only Usernames. (this will be a drop down menu in future releases)

  • Off - This should be self explanatory. The script doesn't use Usernames at all.
  • MasterOnly Bypass - If your username matches one on the list, you can use the button regardless of if you're the Master or not.
  • Only Usernames - Your username MUST match one on the list to use the button. MasterOnly is completely ignored in this setting.

Usernames - list of Usernames that the script checks. These need to be exactly how they are In-Game. They are Case Sensitive.

Password Only Settings

Code - This is the password used for the lock.

Passcode Field - This is the InputField used for the lock.

Lock Targets

  • Default Off - This is what get's toggled when the lock is used. Default Off should be used for objects that are off when you upload the world. These will turn ON the first time the lock is used.
  • Default On - This is what get's toggled when the lock is used. Default On should be used for objects that are on when you upload the world. These will turn OFF the first time the lock is used.

Lock Bypass

Lock bypass's purpose is for Private Room setups. If you need to be able to unlock a room from the outside when the lock is placed inside the room. This lock by default is only seen by the Room Master, but can be expanded to a list of Usernames or can even be set so anyone can use it. although if you wanted anyone to be able to use it, a normal UI button that interacts would be more performant than this.

Tips and Tricks

i want the button to be Single Use only

You can add the button or passcode to its own Default On list and it will toggle off when used.