GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
|
| 13 Aug 2014 08:54 PM |
How do i detect the chat of all players in game through script? I need it to be inside a joined player, and already have players previously joined, so it cant be playeradded |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Aug 2014 08:57 PM |
chats = {}
game.Players.PlayerAdded:connect(function(p) p.Chatted:connect(function(chat) table.insert(chats, p.Name .. " said " .. chat) end) end) |
|
|
| Report Abuse |
|
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
|
| 13 Aug 2014 08:59 PM |
not playeradded..... Bump - |
|
|
| Report Abuse |
|
|
| |
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Aug 2014 09:00 PM |
Oopsy, sorry.
chats = {}
game.Players.PlayerAdded:connect(function(p) p.Chatted:connect(function(chat) table.insert(chats, p.Name .. " said " .. chat) end) end)
for i,v in pairs(game.Players:GetChildren()) do v.Chatted:connect(function(chatted) table.insert(chats, p.Name .. " said " .. chatted) end) end |
|
|
| Report Abuse |
|
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
| |
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
| |
|
| |
|
GearMechs
|
  |
| Joined: 01 Dec 2010 |
| Total Posts: 1220 |
|
| |
|
|
| 13 Aug 2014 09:04 PM |
| he said bump at the same time you posted |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2014 09:04 PM |
| But it was posted after, therefor we have to beat him up. |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2014 09:05 PM |
wow and people post thoughtful code snippets and you get ingrateful replies...no wonder the natives are restless.
Maybe we can just post RFTW for every post.
Read the Frickin Wiki. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 13 Aug 2014 09:05 PM |
nonono
he says thanks so its k |
|
|
| Report Abuse |
|
|