Hello developers! It is unusual for me to not have a code for this topic. But I was wondering how i could make an update log that has current logs and past logs about the game.
os.date may be useful for the themes, it receives a formatString and the current time in seconds(os.time()) and returns a dictionary with the current year, month, day, hour etc.:
local Date = os.date("!*t", os.time()) --remove "!" to make the time local
print(Date.year, Date.month, Date.day, Date.hour, Date.min, Date.sec)
and depending on those you can chose to apply different themes by changing their .Visible property:
--february
if Date.month == 2 then
ValentineTheme.Visible = true
end
Also I have provided a function in a previous post, which can be used to find the season:
Now to answer your other question, for the logs you will either have to use a Datastore(Roblox one or external one) or manually update them with code. Although I consider the datastore method better because you will be able to set the logs at any point in time without updating the place. Also because this is a UI you may have to use a RemoteEvent to send the logs to the client(because clients can’t make datastore and http requests) then after the logs are retrieved you have to visualize them depending on how your UI and saving method works.
I’m still very confused on the dataStore part, I wanted to make it for player to click a button to go back to see the past update logs or move on to newer ones if you know what I mean? I don’t think it would be that complicated?