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: If Color found then change color

Previous Thread :: Next Thread 
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
25 Jun 2015 04:49 PM
How to write a script that changes color


If find brickcolor brown then
brickcolor == green

Obviously not a script @above, just an example for what i'm looking for
Report Abuse
gerov is not online. gerov
Joined: 05 Feb 2011
Total Posts: 5504
25 Jun 2015 04:57 PM
Example

if part.BrickColor == BrickColor.new("Bright red") then

part.BrickColor = BrickColor.new("Bright blue")

end
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
25 Jun 2015 05:48 PM
I'm looking for more of this:
It only colors one instead of repeating the process, how do I make it repeat / find a different brick



while true do
part = script.Parent:FindFirstChild("Brick")
if part.BrickColor == BrickColor.new("Bright red") then
part.BrickColor = BrickColor.new("Bright blue")
part.Name = "Colored"
end
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
25 Jun 2015 05:52 PM
Eew no, use .Changed.

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
25 Jun 2015 05:55 PM
My script works for one brick, i need it to do it to all the bricks in the model that have the corresponding color
Report Abuse
CrixusOdalisManiatus is online. CrixusOdalisManiatus
Joined: 16 Jun 2011
Total Posts: 5987
25 Jun 2015 06:57 PM
bump
Report Abuse
viplav37 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
25 Jun 2015 06:58 PM
"FindFirstChild" is the reason its only working for one. try making a table.
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