pienoodle
|
  |
| Joined: 16 Nov 2010 |
| Total Posts: 147 |
|
|
| 05 May 2015 03:50 PM |
This script I made finds the number of words in a string of text.
Link: http://www.roblox.com/Number-of-Words-Finder-item?id=245564268 |
|
|
| Report Abuse |
|
|
| 05 May 2015 04:21 PM |
local str = "Do you have any bananas?" local words = {}
for w in string.gmatch(str, "(%w+)[%p%s]") do table.insert(words, w) end
print("There are "..#words.." words") |
|
|
| Report Abuse |
|