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 » Scripting Helpers
Home Search
 

How would I find the message?

Previous Thread :: Next Thread 
Sharpshooter26 is not online. Sharpshooter26
Joined: 26 May 2010
Total Posts: 5166
12 Jan 2013 07:30 PM
Words = { "1", "2", "3", "etc"}

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(chat)
for i,v in ipairs(Words) do
if chat:lower() == v:lower() then

end
end
end)
end)


I want to figure out when the message is chatted which one it is, currently the fuction will run and I will know one of the words were chatted but I dont know which one was chatted.


Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
12 Jan 2013 07:32 PM
print(v.." Was chatted")
Report Abuse
Sharpshooter26 is not online. Sharpshooter26
Joined: 26 May 2010
Total Posts: 5166
12 Jan 2013 07:38 PM
This is old sorry I misread the script and didn't realise that v is what I wanted.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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