Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
|
| 05 Jun 2014 02:25 PM |
| How exactly do you make the results only "CONTAINING" the characters rather than having to be the exact name in a search bar? |
|
|
| Report Abuse |
|
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 05 Jun 2014 02:26 PM |
text = define here pls text1 = text:sub(1) -- gets all characters from the first character, if I type youssef04, it will "read" youssef04. |
|
|
| Report Abuse |
|
|
Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
|
| 05 Jun 2014 02:33 PM |
So say if I searched "Cookie" then it would get me ANYTHING containing cookie, e.g. Hi, I like cookies!...? |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2014 02:34 PM |
no youssef has no idea what he's talking about.
http://wiki.roblox.com/index.php/String_pattern
|
|
|
| Report Abuse |
|
|
Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
|
| 05 Jun 2014 02:40 PM |
| oh, so you use :match(). However, how exactly would I format it? |
|
|
| Report Abuse |
|
|
Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
| |
|