TextBox Text value isn't updating according to what I put into it in-game

TextBox Text value isn’t updating according to what I put into it in-game. Check this gif for more information: https://gyazo.com/68a410b66630cd13089fe1beca02bcab

1 Like

You should use tostring() to turn it into a string as it thinks that the string was the previous text.

Can you provide us with your script?

1 Like
script.Parent.MouseButton1Click:connect(function()
	print(script.Parent.Parent.chat.TextBox.Text)

end)
1 Like

I’ve had a go at rewriting your script. Let me know if it worked.

script.Parent.MouseButton1Click:connect(function()
    print(tostring(script.Parent.Parent.chat.TextBox.Text))
end)

Works great now, thanks!

30chars

1 Like