while wait(1) do
local Hours = math.floor((Time - os.time()) / 3600)
local Minutes = math.floor(((Time - os.time()) / 60) / Hours)
local Seconds = math.floor(Time - os.time() / Minutes)
end
I am trying to make a countdown that displays hours, minutes and seconds. But it doesn't work because my math is wrong somewhere. But I do not know where. How would I fix this?
Time is os.time 24 hours in the future, so i need to countdown.
