Highlighting Text in TextLabel

Hello. What I am trying to do is in a TextLabel, I want to highlight text. Here is an example of what I mean:


image

I have tries Rich Text strokes but they do not look good.

Any ideas on how I could achieve this result with a script?

This might not be the best approach, but it’s what first comes to mind. You could add a colored frame behind the text. To determine where to put it you could try using this TextService:GetTextSize. You’ll most likely have to use it multiple times to get all the positioning information you will need.

Thanks, I will try this out later, if it works I will give you the solution.

1 Like