|
| 26 Oct 2017 08:25 PM |
| I want to make a loop continue until a variable is no longer true, how do i do this? I was think while var = true do but that didn't work for me unless i was doing it wrong. |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2017 08:27 PM |
repeat --CODE until Var == false |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2017 08:28 PM |
Insert a BoolValue somewhere.
local value = [boolvalue location]
while value == true do print'cool' wait() end
Change the boolvalue to activate and deactivate.
|
|
|
| Report Abuse |
|
|
D3D9
|
  |
| Joined: 20 Aug 2016 |
| Total Posts: 87 |
|
|
| 26 Oct 2017 08:32 PM |
= will set a variable. == will check if it is equal to.
Note that difference.
|
|
|
| Report Abuse |
|
|