I have been attempting to work on an inventory system but StringValues and text values aren't changing properly. Through a script it changes though looking at the value in the properties panel it hasn't changed.
To change a StringValue
:
myString = script.StringValue myString.Value = "Hello" print(myString.Value) --outputs Hello
To change a TextLabel
:
myText = script.Parent.TextLabel myText.Text = "Hello" print(myText.Text) --outputs Hello
I suggest reading through the wiki to get a better understanding. Please accept my answer if this helped!
Nevermind! I fixed the glitch by deleting it from the hierarchy and then inserting it back in, strange.