• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua check if is monday

Sigoles

Discord: @sigoles
Joined
Nov 20, 2015
Messages
1,209
Solutions
2
Reaction score
154
how to check if is monday?
this script check the day:

LUA:
local spawnDay = 10
local currentDay = os.date("%d")
if spawnDay == tonumber(currentDay) then
    --
end

tfs 1.2
 
If you pass %A to os.date it will return the weekday name
LUA:
local spawnDay = "Monday"
local currentDay = os.date("%A")
if currentDay == spawnDay then
    --
end
 
Last edited:
Solution
Back
Top