|
| 09 Mar 2014 06:10 PM |
I have something that triggers this script to turn on, and it is not working, can someone tell me if anything is wrong with this?
local minutes=script.Parent.MinutesVal.Value local seconds=script.Parent.SecondsVal.Value local hours=script.Parent.HoursVal.Value
script.Parent.Time.Text="01:00:00" wait(1) script.Parent.SecondsVal.Script.Disabled=false script.Parent.MinutesVal.Script.Disabled=false while true do wait() script.Parent.Time.Text="00:"..minutes..":"..seconds end
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 09 Mar 2014 06:31 PM |
--Use tostring
local minutes = script.Parent.MinutesVal.Value local seconds = script.Parent.SecondsVal.Value local hours = script.Parent.HoursVal.Value
local min = tostring(minutes) local sec = tostring(seconds)
script.Parent.Time.Text="01:00:00" wait(1) script.Parent.SecondsVal.Script.Disabled = false script.Parent.MinutesVal.Script.Disabled = false while true do wait() script.Parent.Time.Text="00:"..min..":"..sec end
|
|
|
| Report Abuse |
|
|
| |
|