Cant change the text of a TextBox with a script

The title explains everything, ive made sure the the retured text of the function is there (so its not nil) but it still doesnt work.

image
image

If i set the text to the “file.Data” it works but if i use the “decodedfile” it doesnt.
I have no idea on how to fix this

Try setting a breakpoint and stepping through the code line by line to see if it’s doing what you expect

https://create.roblox.com/docs/studio/debugging

well it does what i want it decodes the file.Data so it can be used but it doesnt set the text

You never actually printed out decodedfile, see what it prints as, and also try doing

typeof(decodedfile)

These are some very simple suggestions, but it might help you figure out what’s happening.

returns everything its supposed to
image
image

Maybe try tostring(decodedfile)? Also make sure the TextLabel is in the correct spot and is the correct class. Other than that I’m stumped. Is it a TextLabel and not a TextBox?

its a textlabel and tostring() doesnt change anything

Try :WaitForChild() I honestly have no idea, can I see the explorer window?

and the even more weird part is that i can set the decodedfile manualy but just not with the script

Yeah, try :WaitForChild(). I feel like it would just throw an error (if it was not there*) but never hurts to try.

:WaitForChild() doesnt change anything again, im beginning think this is some sort of roblox bug

oh and here is the explorer
image

On the line where you change the text, try just saying

script.TextLabel.Text = "blahblahblah"

To see if it can change at all.

this works but the decodedfile should work too as its not nil and a string

Yeah, this is very confusing. If it doesn’t work for decodedfile, it shouldn’t work for that string either. And we verified that the typeof(decodedfile) is a string as well, so none of this makes sense.
Might want to file a bug report, unless you find a solution before then.

1 Like

sadly i cant make one as im not a regular and they dont rank up people i think

Yeah I can’t make one either. Shame.

HOW DO YOU GET THE ICON BY YOUR PROFILE PICTURE???

by joining groups and setting them in the settings
you can join/find them here DevForum | Roblox

Well anyways, I’m stumped on your problem. Good luck, I can’t think of how to fix it.

1 Like

neither can i, ill pm a staff member maybe they can help