Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
|
| 21 Feb 2015 06:20 PM |
for num = 1000, 1, -1 do workspace.IntValue.Value = num wait(1) if workspace.Bool1.Value == true then print("lol") break elseif workspace.Bool2.Value == true then print("rofl") break end end
This doesn't work. ServerScript in ServerScriptService.
The loop continues regardless of the status of the boolvalues. |
|
|
| Report Abuse |
|
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
|
| 21 Feb 2015 07:36 PM |
| this isn't even that hard ffs |
|
|
| Report Abuse |
|
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
| |
|
|
| 22 Feb 2015 04:56 PM |
| Try creating a condition, and make sure the condition is passed before anything happens in the loop. Then just use set the condition to false instead of breaking, and the loop pretty much ends. |
|
|
| Report Abuse |
|
|