if os.Time("*T",hour) == 20 then print("Its Time") end
And what timezone does this use? UTC? Or EST
what you actually want to do is os.date("*t", os.time())
. which will return a table, and then you can index .hour
on it..
for instance:
local currentDate = os.date("*t", os.time()) if(currentDate.hour == 20) then print("it's 8 PM") end