|
| 03 Mar 2016 07:02 AM |
Active.Changed:connect(function() if Active.Value == true then repeat Drop() until Active.Value == false elseif Active.Value == false then print 'iron off' end end)
-- Active is a defined bool value. When it's changed from false back to true, it creates a new thread with the repeat loop and they never stop when Active.Value == false. I think I could use coroutines to solve this problem, and I tried but I'm not quite sure how to yield correctly..can anyone give me some pointers on this? |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2016 08:58 AM |
| The problem may lie within Drop(), what does it do? Make sure it has a yield within it, such as wait(), otherwise it would crash. |
|
|
| Report Abuse |
|
|
| |
|