Jonibus
|
  |
| Joined: 30 Jan 2010 |
| Total Posts: 8985 |
|
|
| 19 May 2014 11:53 AM |
I want to detect when an IntValue changes, and when it changes I need access to the what the value used to be. How can I do this?
Follow me on twitter: @Jonibus_RBX |
|
|
| Report Abuse |
|
|
|
| 19 May 2014 11:55 AM |
local oldvalue = whatevervalue.Value value.Changed:connect(function(newvalue) print(value) --do more stuff oldvalue = newvalue end)
-- almost certainly will not work.
|
|
|
| Report Abuse |
|
|
| |
|