Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
|
| 22 May 2014 08:57 PM |
This is Name Detection.
I want to see if there's a way to find Children if they have certain letters in order on them.
So I can detect something by MSG and it really is called MSG784.
So basically I want to detect certain Children if they have certain letters in them in order. |
|
|
| Report Abuse |
|
|
Zeloi
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 1143 |
|
| |
|
|
| 22 May 2014 09:05 PM |
string.match
or
string.find
str = "I want Mah Cookies!"
str:find("Mah") |
|
|
| Report Abuse |
|
|
|
| 22 May 2014 09:05 PM |
Hmm, for anywhere in the string I am not sure but for a certain place, like the first thre letters, you can do: if string.sub(Player.Name,1,3) == "MSG" then
|
|
|
| Report Abuse |
|
|
|
| 22 May 2014 09:06 PM |
| Oh nevermind, listen to Jimmy. |
|
|
| Report Abuse |
|
|