president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi folks! Could someone help me with my new script?
It is suppost to works like if it is 20th of the month then between 9am to 1p.m will broadcast a message, a did a little shit, check out.
Thanks.
It is suppost to works like if it is 20th of the month then between 9am to 1p.m will broadcast a message, a did a little shit, check out.
Code:
local hours = {9, 10, 11, 12, 13}
function onThink(interval, lastExecution, thinkInterval)
if os.date("%d", os.time()) == 20 then
-- math.random between hours
-- broadcast a message
return true
end
Thanks.