Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
|
| 25 Oct 2015 09:18 PM |
| when someone says something in the chat the color of a brick changes |
|
|
| Report Abuse |
|
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 25 Oct 2015 09:20 PM |
http://wiki.roblox.com/index.php?title=API:Class/Player/Chatted
u sicko! |
|
|
| Report Abuse |
|
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
|
| 25 Oct 2015 09:21 PM |
| sorry i meant to say if a certain person says something in the chat the color of a brick changes |
|
|
| Report Abuse |
|
|
|
| 25 Oct 2015 09:22 PM |
for _, p in next, game.Players:GetPlayers() do p.Chatted:connect(function(c) workspace.Part.BrickColor = BrickColor.random() end) end |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 25 Oct 2015 09:22 PM |
Yes.
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg == "YELLER" then Part.BrickColor = BrickColor.new("New yeller") end end) end)
u sicko! |
|
|
| Report Abuse |
|
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
|
| 25 Oct 2015 09:24 PM |
would this script be right? (cake would be the word i would say)
game.Players.PlayerAdded:connect(function(player) if player.Name == "Y3L" then player.Chatted:connect(function(msg)"cake" then game.Workspace.Part.BrickColor = BrickColor.new("White") end) end end) |
|
|
| Report Abuse |
|
|
Y3L
|
  |
| Joined: 24 Mar 2009 |
| Total Posts: 6737 |
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 25 Oct 2015 09:27 PM |
No, more like this:
game.Players.PlayerAdded:connect(function(player) if player.Name == "Y3L" then player.Chatted:connect(function(msg) if msg == "cake" then game.Workspace.Part.BrickColor = BrickColor.new("White") end) end end)
u sicko! |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
| |
|