|
| 14 Jul 2015 08:53 PM |
| It I were to have a seachbar setup.. how would I detect what the user is trying to search, and find the best possible results? |
|
|
| Report Abuse |
|
|
Cuyler
|
  |
| Joined: 27 Feb 2006 |
| Total Posts: 3784 |
|
|
| 14 Jul 2015 08:55 PM |
local text = searchBar.Text local words = {} for word in text:gmatch('%w+') do table.insert(words, word) end
--//This will give you a list of all 'words' a character has typed and index them in a table. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2015 08:58 PM |
| What about the part where the script need to find an object or something that matches one of those words? |
|
|
| Report Abuse |
|
|