Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 25 Jun 2016 09:15 AM |
module.Wait = function(duration) local startTick = tick() heartBeat = game:GetService('RunService').Heartbeat:connect(function() if tick() >= startTick+duration then heartBeat:disconnect() end end) end
- Isosta |
|
|
| Report Abuse |
|
|
c_p
|
  |
| Joined: 25 Feb 2016 |
| Total Posts: 1427 |
|
|
| 25 Jun 2016 09:24 AM |
| how long is the duration, sir |
|
|
| Report Abuse |
|
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 25 Jun 2016 09:29 AM |
you send the duration m8
it works much better for me when animating than the regular wait() function because my animations are frame based and so it this wait function
- Isosta |
|
|
| Report Abuse |
|
|