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 » Scripters
Home Search
 

Re: would this script be possible to make

Previous Thread :: Next Thread 
Y3L is not online. 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
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
25 Oct 2015 09:19 PM
yes
Report Abuse
Klink45 is not online. 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 is not online. 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
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
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 is not online. 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 is not online. 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 is not online. Y3L
Joined: 24 Mar 2009
Total Posts: 6737
25 Oct 2015 09:25 PM
oh ok
thx man
Report Abuse
Klink45 is not online. 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 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
25 Oct 2015 09:27 PM
No problem.

u sicko!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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