generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Marketing
Home Search
 

Re: Number of Words Finder

Previous Thread :: Next Thread 
pienoodle is not online. 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
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Marketing
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image