#how do i make a door where you need to flick multiple levers?
5 messages · Page 1 of 1 (latest)
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