Trying to make an update log that has current logs and past logs

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.

Here is what I want to achieve more in depth:

  • I would like to some how change the text, colors, and designs of the GUI to match the theme with the seasons of the year too.

  • I also somehow wants to not always have each text boxes for each update so I would have to create scripts for buttons everytime

Here are some of my questions:

  • Would I have to use a module scripts to have a dictionary for each update?
  • How would I make each themes for each seasons of the year
    (Here is what I mean by each themes/designs for each seasons of the year)

Spring theme:

Valentines theme:

New Year theme:

Thank you so much for your help, if you have any questions, please leave it below!

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.

2 Likes

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?

1 Like