Help with my Script Editor GUI

I’m trying to make a Script Editor Gui, but I don’t know how to make the a word change color like local be blue, string be green

  1. What do you want to achieve? Keep it simple and clear!
    What I want:
    https://gyazo.com/bc99be02434acf61919ac4598a32d7d4
    What I have:
    https://gyazo.com/c4d9e57af5c39cbf35699b9e477d6801

  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how to make it

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried to find, but I can’t

Try using RichText, it allows you to change the appearance of certain parts of a text. You can make a function that automatically checks the input script and see if it matches any keywords, then put the tag formats around them. Maybe use GetPropertyChangedSignal and string.gsub?

Article: Rich Text Markup | Documentation - Roblox Creator Hub

1 Like