rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
|
| 23 Nov 2013 11:41 PM |
Workspace.Value.Changed:connect(function(val) -- do stuff end) |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 23 Nov 2013 11:42 PM |
nums = {2} -- original number num = nums[1]
if num ~= nums[1]then return nums[1] - num end
|
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
|
| 23 Nov 2013 11:52 PM |
| Just use a .Changed... that's why they made that function.... |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 23 Nov 2013 11:56 PM |
i was showing a simple way, you have to have a orignal number variable.
so lets do this
orignum = 10 -- original number value
v = game.Workspace.NewVal -- the value that holds the number in integer or double
v.Value = orignum -- the value of v is now orig number
v.Value.Changed:connect(function() return orignum - v.Value end) -- the value of the number changed so we check by how much from the original number. |
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 24 Nov 2013 12:00 AM |
| actually it might idk what your trying to do, it would work, but idk if it will be convenient for you. |
|
|
| Report Abuse |
|
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|