Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Text wont change from value?

Asked by 3 years ago
Edited 3 years ago

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
0
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. Xx_FROSTBITExX 116 — 3y
0
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? AlreadyCrimson 2 — 3y
0
maybe use a localscript, since this is a gui? CrazyCats84 154 — 3y
0
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. KamKam_AJHasBeenBan 37 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

error was I needed to use PlaceId Not GameId.

Ad

Answer this question