TextBox Rich Text

when i set the text of a Textbox to <font color="#FF7800">hello</font> i a script when i enter the text box the text loses the properties and says hello. When i click off the Textbox it applies the color

image

Make sure RichText is off

it just says<font color="#FF7800">hello</font>text
Screenshot 2023-12-29 181526

When I click off the box , the effects are applied
Screenshot 2023-12-29 181622


When I click to write more text it shows me back <font color="#FF7800">hello</font>

Look in the properties and turn off RichText in the “Text” section

When I do so it gives me the same results.
The problem is when i click the box to write more text the colored text changes to <font color="#FF7800">hello</font>

If the problem still persists, I’m not sure what to do about it. RichText enables string formatting (such as bolding, italics, text font/color/size, etc.)

It’s because you’re focusing on the textbox and when its on focus mode it has different properties.

Try this

local textBox = script.Parent -- Your path to the textbox

textBox.Focused:Connect(function()
-- Change properties here.
end)

it does not work the problem seems to be when I click the box

i read the roblox information about the text boxes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.