100465
|
  |
| Joined: 17 Jun 2010 |
| Total Posts: 6353 |
|
|
| 10 Aug 2013 03:47 PM |
Lets say I wanted a light, Press button once, Turns on. Press again, Turns off.
How do. Just need simple explanation, not whole thing.
I ran out of siggies, (Again) |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 03:52 PM |
Its pretty simple.
use the not operator. It reverses the value. So not true == false and not false == true.
so
Thing.Property = not Thing.Property
if it is true then it == not true which is false. |
|
|
| Report Abuse |
|
|
kingmatt2
|
  |
| Joined: 20 Aug 2011 |
| Total Posts: 6494 |
|
|
| 10 Aug 2013 03:54 PM |
F = true function Clicked() if F then --CODE F = false else --CODE F = true end end script.Parent.MouseButton1Click:connect(Clicked) -- Wrong connection line! Sorry. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2013 03:56 PM |
WHY...Use teh not operator!!!!!!!!!
|
|
|
| Report Abuse |
|
|