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
 

Re: Chat commands

Previous Thread :: Next Thread 
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 12:18 PM
What's the function for chat commands? As in, I say something and something happens? Tried the roblox wiki, but seeing as I don't know what it's called, I don't go very far. Does anyone know what it is?
Report Abuse
1waffle1 is not online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
13 Aug 2011 12:19 PM
Player.Chatted:connect(function(Message) end)
Report Abuse
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 12:20 PM
Thanks.
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
13 Aug 2011 12:34 PM
http://news.roblox.com/index.php/Using_the_Chatted_Event
http://news.roblox.com/index.php/Chatted_(Event)
Report Abuse
catlover0624 is not online. catlover0624
Joined: 15 Apr 2010
Total Posts: 250
13 Aug 2011 12:37 PM
Thanks. Just to ask, would this work if they mentioned the work anywhere in a sentence/word?

Game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "reset" then
player.Character:BreakJoints()
end
end)
end)
Report Abuse
Spectrumz is not online. Spectrumz
Joined: 22 Mar 2011
Total Posts: 4338
13 Aug 2011 01:04 PM
@catlover

No. You'd have to use some kind of string function for that. My guess is string.sub(), although I've never used it. Or maybe string.find()....
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