|
| 02 May 2014 10:44 PM |
| If I had a text label, how would I detect how many characters are in the text? |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
| |
|
|
| 02 May 2014 10:49 PM |
`local Length = string.len( TextLabel.Text )`
`local Length = TextLabel.Text:len()` also works, but it is just a "pretty" way to write the same thing as the first snippet.
You'd obviously need to define the variable 'TextLabel' in both examples. |
|
|
| Report Abuse |
|
|
|
| 02 May 2014 10:50 PM |
TextLabel = script.Parent --Change to what it is, example; script.Parent.Label
NChars = #TextLabel.Text |
|
|
| Report Abuse |
|
|
| |
|
| |
|