I want special things to happen in my game during a certain day of the week, I've researched a bit and I found command os.date() which creates a table of information about current time, but... I don't really know how to read from arrays/tables. If I run this command
for k, v in pairs(os.date("*t")) do print(k .. ": " .. v) end
i get in output:
-- x is a number of hrs, mins, secs...
hour: x
min: x
wday: x
day: x
month: x
year: x
sec: x
yday: x
Now I want to get number of "wday", and if it's for an example 2, script would print "It's Monday!" So this is basically a question about how to read tables...

1 comment
Thank you so much, I actually want to use !*t instead of *t