If the gameID = a value from a folder, then it will set the textbox to 1985. the value is called a1985, inside is just a gameId. ( Yes I know its so simple but idk why it wont change the text)
local Destination = script.Parent.Times.Destination
local Present = script.Parent.Times.Present
local years = script.years
local a1985 = years.a1985.Value
if game.GameId == a1985 then
Present.year.Text = "1985"
end

4 comments
Ok, you seriously need to word your question slightly better because ngl it's confusing. So, can you confirm that your value is equal to your gameId, simply by printing the gameId? If you know 100% that your value is the same as the GameId, then there's must be a problem with how your referencing your other variables. Make sure they reference to the correct things.
Is it actually registering that it is changing the game ID, because the problem could not be changing the textbox text, but actually registering the change of year. try making it so where it changes the Textbox Text in the script, add print("test") or something and test the game. Does it print that in output like it is supposed to?
maybe use a localscript, since this is a gui?
A gameid is a string of numbers, so i'm pretty sure it cant be equal to a as the first letter. You need to put the game's exact id. By the way you can't put game.gameid in a folder.