So, I wanted that, when all of the values are true, something happens. But I only tried to do this with prints, so it would be easier, but for me it's not easier.
And it only prints "starting".
01 | local ws = game.Workspace |
02 |
03 | local value 1 = ws.Part 1. Value |
04 | local value 2 = ws.Part 2. Value |
05 | local value 3 = ws.Part 3. Value |
06 | local value 4 = ws.Part 4. Value |
07 | local value 5 = ws.Part 5. Value |
08 |
09 | value 1. Value = true |
10 | value 2. Value = true |
11 |
12 | print ( "starting" ) |
13 |
14 | if value 1 = = true and value 2 = = true then |
15 | print ( "both true" ) |
16 | end |
Thank you for reading!
You meant
1 | if value 1. Value = = true and value 2. Value = = true then |
?
is the value true in the first place if not then you need to update it and you will have to put it in a loop or it would only run once