Hello, I’m trying make TextBox, which will format text when it unfocused.
--HeightInput is a TextBox, ToolSettings[Tool]["Brush"][Property][2][3] is some dictionary variable
BrushConnections[#BrushConnections + 1] = HeightInput.FocusLost:Connect(function()
ToolSettings[Tool]["Brush"][Property][2][3] = tonumber(HeightInput.Text)
print("<b>" .. HeightInput.Text .. " Studs</b>")
HeightInput.Text = "<b>" .. HeightInput.Text .. " Studs</b>"
end)
the main problem is that print("<b>" .. HeightInput.Text .. " Studs</b>") outputs everything as I want:
![]()
but if I look on text box itself…

only 3 is here, Studs and etc is missed.
Can someone tell me, why my TextBox glitched?