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: Chatted not working.

Previous Thread :: Next Thread 
WhoBloxedWho is online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
14 Jun 2012 07:38 PM
game.Players.PlayerAdded:connect(function(newPlayer)
print(newPlayer)
newPlayer.Chatted:connect(function(message, speaker)
print(message, recipient)
end)
end)

The message part works, but the recipient is always nil. Everything I've tried isn't working.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
14 Jun 2012 07:42 PM
game.Players.PlayerAdded:connect(function(newPlayer)
print(newPlayer)
newPlayer.Chatted:connect(function(message, speaker)
print(message, speaker)
end)
end)

...?

† KMXD †
Report Abuse
WhoBloxedWho is online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
14 Jun 2012 07:47 PM
It still prints nil. Didn't realize I had recicpeint instead of speaker. I was testing it earlier with message, recipient, speaker. But they both return nil.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
14 Jun 2012 07:48 PM
Chatted doesn´t return a second value.

game.Players.PlayerAdded:connect(function(newPlayer)
print(newPlayer)
newPlayer.Chatted:connect(function(message)
print(message, newPlayer)
end)
end)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
14 Jun 2012 07:51 PM
Wow just reach the .Chatted event on the Wiki, and it says:

"Please note that the recipient value is always nil. This is an example of connecting the chatted event to all incoming players."

† KMXD †
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