ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 05 Nov 2014 11:27 AM |
wait(script.Time.Value) repeat script.Time.Value = script.Time.Value - 1 wait(1) until started == false
What i need is for the wait to apply to the script, but have the repeat thing still do its thing, while the wait is still active... get me? If you do, please post an answer below |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 05 Nov 2014 11:33 AM |
spawn(function() repeat script.Time.Value = script.Time.Value - 1 wait(1) until started == false end)
wait(script.Time.Value)
|
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 05 Nov 2014 11:35 AM |
Little better example,
I want the 2 waits to be active at the same time |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
| |
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 05 Nov 2014 11:43 AM |
| Ok, so I used coroutine.wrap but after its been used once, it says "cannot resume dead coroutine", how do I fix this? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 05 Nov 2014 11:45 AM |
Just use spawn like I did...
In this case its the same thing |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 05 Nov 2014 11:55 AM |
| Id like to use coroutine.wrap |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
| |
|
|
| 05 Nov 2014 12:49 PM |
| Just use it like he did he says it's the same thing brah. |
|
|
| Report Abuse |
|
|