|
| 21 Jan 2015 03:07 PM |
i tried making a timer for my game but i am having trouble changing the value of the display.
first i made a StringValue in workspace called "Time" then inside of that i made an IntValue called "Minute" also inside of "Time" i made another IntValue called "Second" i set the minute value to 10 and then i made a script inside of "Time":
minute = script.parent.Minute second = script.parent.Second script.parent.Value = (minute .. ":" .. second)
then i test it in solo mode, and i checked the value of "Time" but it is blank. i tried adding a delay to my script but it doesnt work. me trying to make a timer really isnt the point. its about me not being able to change values with a script. can anyone please help me. |
|
|
| Report Abuse |
|
|
lombardo2
|
  |
| Joined: 30 Nov 2008 |
| Total Posts: 1604 |
|
|
| 21 Jan 2015 03:09 PM |
minute = script.parent.Minute second = script.parent.Second script.parent.Value = (minute.Value .. ":" .. second.Value) |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2015 03:10 PM |
| i know i forgot to put the tostring function but i also tried this without the minute and second variables and it still didnt work |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2015 03:11 PM |
try this: minute = local script.Parent.Minute local second = script.Parent.Second script.Parent.Value = (minute .. ":" .. second)
|
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 21 Jan 2015 03:12 PM |
Is Value an IntValue or something in the script's parent? Not a good idea to name things like that Value since Value is also a property.
Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740 |
|
|
| Report Abuse |
|
|
| |
|