#how do i make a door where you need to flick multiple levers?

5 messages · Page 1 of 1 (latest)

velvet axle
#

i want to make a door where you have to flick 5 levers in order to open a door. i found this model which allows me to do ONE lever to open a door, but how could i change this to make it 5 levers instead?

upper pebble
#

just have a table with booleans to indicate the lever's state

#

then use
if not table.find(Table, false) then

#

which basically does the following, it reads all values in the table, checks if it can find nil. If it returns a key (so one lever = false) then it will not run the script under it. If it does then it will run the script under it (which can be e.g. the tween for the door in our case)

#

1 level not pulled = no print