MessagingService daily shop?

os.time() should be for the most part synced across all servers so you can use it to create a pseudorandom list of items that will be the same across all servers.

Why?
86400%os.time() will always be 86400 and os.time()%86000 gives you the amount of seconds gone by since midnight at GMT + 0

1 Like

86400 is a day in seconds, if it’s equal to 0 (maybe give add head and floor room) then we know that it has reached another day

Why not simply do it this way?

function anotherDay()
--do stuff
end

wait(86400 - os.time()%86400)
anotherDay()
while wait(86400) do
anotherDay()
end
2 Likes

Because the sync would be really different depending on the time of the server startup