BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 22 Aug 2013 03:27 PM |
sd = script.day.Value sm = script.month.Value sy = script.year.Value function day() wait(1) sd = sd + 1 end function month() if sd >= 31 then sm = sm + 1 sd = 1 end end
function year() if sm >= 12 then sy = sy + 1 sm = 1 sd = 1 end end
while true do wait(.1) day() month() year() end
So I created this but it doesn't seem to work :/ no output. |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|
Safoku
|
  |
| Joined: 09 Jan 2013 |
| Total Posts: 146 |
|
|
| 22 Aug 2013 03:48 PM |
| I'll help, but I need to know exactly what wrong. |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 22 Aug 2013 03:50 PM |
| Well the value of days doesn't change. |
|
|
| Report Abuse |
|
|
Safoku
|
  |
| Joined: 09 Jan 2013 |
| Total Posts: 146 |
|
|
| 22 Aug 2013 03:53 PM |
| Well, I don't like the way you made it, but I can say I don't see any errors. Instead of making a loop. Try addig a on Change functions so that it only run when the values change |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 22 Aug 2013 04:29 PM |
Your setting the values of the Values to a variable in a script.
"day = script.Day.Value" will set day to the value's value but not to the value property.
If that's confusing then think of it as:
"name = script.Name" will set the variable name to the scripts name but not the scripts name property
You should use an object value instead like:
"day = script.Day"
and then latter on:
"day.Value = day.Value+1" |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|