-
Hey every one thank you for your help so far. I have 3 buttons and I want to set specific values to my button to calculate in LUA. 0 = Off Button a (0 1) Then i want to calculate
Anyone knows how to set this up? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Why is b+c 7 and not 6? You are taking the value of the button which is 0 or 1. Thus assign new values with an if/else statement if button b or button c is on or off. If b == 1 then b = 2 end Local x = a+b+c |
Beta Was this translation helpful? Give feedback.
Why is b+c 7 and not 6?
You are taking the value of the button which is 0 or 1. Thus assign new values with an if/else statement if button b or button c is on or off.
If b == 1 then b = 2 end
If c == 1 then c = 4 end
Local x = a+b+c