Actoz
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 2745 |
|
|
| 30 Jul 2011 10:13 PM |
| How would you check if a value hasn't changed in so long? |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 10:17 PM |
Value = YourValue TimeWithoutChanges = 0
coroutine.resume(coroutine.create(function() while wait(1) do TimeWithoutChanges = TimeWithoutChanges + 1 end end))
Value.Changed:connect(function() TimeWithoutChanges = 0 end)
Maybe? |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 30 Jul 2011 10:17 PM |
function onChanged() return true end script.Parent.Changed:connect(onChanged)
while not onChanged() do wait() local a = 1 a = a + 1 if a == 60 then print("It's been a minute!") break end end
It might not work, but try it anyway. |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Jul 2011 10:47 PM |
"Spec's should work."
OHOHOHO icwatudidthere |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2011 10:49 PM |
a = 1 b = a
if b == a then end
wut, isn't this it? |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
| |
|