So would I just link it to the time or how would it work.
1 Like
Yeah linking it to time seems to be the best way that I can think of rn.
how would i like literally set the time if like a server started. cause if i had like a bit more free approach so like sunsets and all that and lets say the day was 20 mins and night 10, if like we 17 mins through day and its a sunset, how would the server recognise that and adjust the time
local timeOfDay
local currentTime = os.time() % 1800
if currentTime >= 1200 then
timeOfDay = "Night"
elseif currentTime >= 1020 then
timeOfDay = "Sunset"
else
timeOfDay = "Day"
end