Everything works fine until it have to change the day then it is broken it just changes the hours from 0 to 23 agian the day stays "2"
Now the script time is -54
local Time = (-54 * 24 * 60 * 60) - Tick() -- 2 days
It took me a while to change the days.
orginally from a wiki:
local Time = (135 * 24 * 60 * 60) - Tick() -- 191 days
But I also found a other way to get 2 days.
local Time = (135 - 54 * 24 * 60 * 60) - Tick() -- 2 days
But the problem is the count down everything works fine only the days not.
Also I know tick takes your local time
I tried to use os.time() but failed with tons of errors.
Full script
wait()
local mFloor = math.floor
local Next = next
local Tick = tick
local Wait = wait
local Stop = 0
while true do Wait(1)
wait()
local Time = (-54 * 24 * 60 * 60) - Tick()
local Dag = mFloor((Time / 60 / 60 / 24) % (365 + 0.2425)) --days
local Uur = mFloor((Time / 60 / 60) % 24) --hours
local Minute = mFloor((Time / 60) % 60) -- minutes
local Seconde = mFloor(Time % 60) -- seconds
if Stop == 0 then
script.Parent.Tijd.Text = Dag.." Day(s) "..Uur.. " Hour(s) "..Minute.." Minute(s) "..Seconde.." Second(s)"
end
if Dag==0 and Uur==0 and Minute==0 and Seconde==0 then
Stop=1
script.Parent.Tijd.Text = "Update will be released soon!"
end
end
