I am making my code executer (not for virus btw) but I do not know how to make a certain word a certain color when it is in the same text box but I do not know what to add for the next things. I would love for help.
CodeBox.Text = --Do not know what too add
CodeBox:GetPropertyChangedSignal("Text"):Connect(function()
CodeBox.Text = --do not know
local term = CodeBox.Text
if term ~= "" then
local split = text:split(term)
if #split - 1 > 0 then
CodeBox.Text = table.concat(split, "<font color=\"#00ff00\">"..term.."</font>")
end
end
end)
I’m not 100% on how you would use it since I haven’t touched lua in a while and I’m not 100% on how string functions work. I would just replace the keyword orange with <font color="#FFA500">orange</font>