Detecting when multiple conditions are met

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I have a door that should open after two number values are set to 1
    i want to avoid using “while true do” loops

  2. What is the issue? Include screenshots / videos if possible!
    i cant seem to figure this out so any help is appreciated!
    heres what I have


    I want the door to open (disable collison) once both “power” values are set to 1

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yea i did

Using two variables and IntValue's .Changed event, you can call a function in both events and inside the function check if IntValue1.Value == 1 and IntValue2.Value == 1 and then you have your condition.

Thanks for the advice, i got it working!
I marked your reply as a solution

1 Like