killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 08 Oct 2012 01:40 PM |
| An objectvalue, specifically |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 01:46 PM |
obj = OBJECT start = time() Time = 0 obj.Changed:connect(function () if obj.Parent == nil and Time == 0 then Time = time() - start end end) |
|
|
| Report Abuse |
|
|
killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 08 Oct 2012 01:50 PM |
| How would you index something that's parent is nil? |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 01:52 PM |
| You can only index it if you have it stored in a variable somewhere. |
|
|
| Report Abuse |
|
|
killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 08 Oct 2012 01:57 PM |
| What could I do then if I created it with a different script than the script I am trying to find it's age with? |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 01:58 PM |
| You will have to index the part before it gets removed. |
|
|
| Report Abuse |
|
|
killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 08 Oct 2012 02:03 PM |
Right, but how would I enter the other script and get the Time variable This solution is not good for me though because I will be constantly making things that need their age tracked. Also I think time() only updates during wait(), you would probably need to use tick() |
|
|
| Report Abuse |
|
|
killjoy37
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 2821 |
|
|
| 08 Oct 2012 05:04 PM |
| Is there another solution? |
|
|
| Report Abuse |
|
|