You can write your topic however you want, but you need to answer these questions:
I have a day/night cycle which works with os.date to get the current local time for the player (one player servers). This works in studio but not in game.
local function localTime()
local date = os.date("*t")
return ("%02d:%02d:%02d"):format(((date.hour)), date.min,date.sec)
end
while wait(1) do
game:GetService("Lighting").TimeOfDay = localTime()
end
the time of day starts at
04:45:48
![]()