I need to have a new ID for each week, that changes every Sunday or Monday.
I'm using math.floor(math.floor(os.time()/(60*60*24*7))), but I'm not sure if:
- It'll actually work in practice, and
- It'll change on Sunday/Monday
I'm using the ID to save things on a DataStore, by the way.
Is there another way to do this?

2 comments
Just a heads up, it looks like that January 1st of 1970 was a Thursday, so you might want to keep that in mind when creating your script.
That's helpful, thanks