Get text after a word that is said

I want to find out what words are after the word ui and put it in a varible that can be transfered t anorther function. My code is below:

main.SearchBox:GetPropertyChangedSignal("Text"):Connect(function()
	local Boxtext = main.SearchBox.Text


	if string.lower(Boxtext):match("ui") then
		action = "ui"
		notificationtween()
	end

end)

Could you give an example of what you mean

Like if I put ui off in a textbox it will delete or not find the word ui and get every word after that and display it.

Use split.
table.concat(string.split(Boxtext, "ui"))

1 Like