Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Finding a word in a textbox, its position?

Im trying to make one of those textbox that is the same when you script when you type game it lights up pink. Yea that any way to find a words position in a textbox or if not highlight a single word in a textbox?

2 comments

0

just detect once the value is changed, if it did, then make it some sort of color idk

0

i dont understand the question but i made an answer based on what you said in chat

2 answers

You can check if the text changes through Text.Changed and connect a function to it.

local text = script.Parent.Text
local function textchanged()
	print("text changed")
end

text.Changed:Connect(textchanged)

This discussion is preserved as it was. New answers, comments, and votes are closed.