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
 

Change color of all parts in workspace

Previous Thread :: Next Thread 
Expoltion is not online. Expoltion
Joined: 29 Sep 2013
Total Posts: 15135
03 Aug 2014 08:54 PM
How would I change the color of all the parts in workspace.
For example, I want to change the Bright blue parts to Bright red.
Any help?


Report Abuse
Xylophilus is not online. Xylophilus
Joined: 16 Jun 2013
Total Posts: 915
03 Aug 2014 08:54 PM
I just made this thread :D, it's a script ran in the command line.
Report Abuse
Expoltion is not online. Expoltion
Joined: 29 Sep 2013
Total Posts: 15135
03 Aug 2014 08:55 PM
can you link me to the thread? :)


Report Abuse
Xylophilus is not online. Xylophilus
Joined: 16 Jun 2013
Total Posts: 915
03 Aug 2014 08:56 PM
I never got the answer yet :c.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
03 Aug 2014 08:58 PM
t = workspace:children()
for i = 1, #t do
if t[i]:IsA'BasePart' then
t[i].BrickColor = t[i].BrickColor.Name == 'Bright blue' and BrickColor.new'Bright red' or t[i].BrickColor
end
end
Report Abuse
theKingBH is not online. theKingBH
Joined: 25 Jul 2014
Total Posts: 1832
03 Aug 2014 08:58 PM
Change all the names of the bricks you want to change color to block then:

game.Workspace.Block.BrickColor = BrickColor.new("Bright red")
Report Abuse
Kyuro is not online. Kyuro
Joined: 03 Sep 2012
Total Posts: 5800
03 Aug 2014 09:00 PM
Here's my idea of how it *MIGHT* work.

-- ALL BRICKS --
X = game.Workspace:GetChildren()
if X:isA("Part") then
X.Color = ("Bright Yellow")
end

-- CERTIAN COLORS --
X = game.Workspace:GetChildren()
if X:isA("Part") then
if X.Color == ("Really Red") then
X.Color = ("Bright Yellow")
end
end

This may or may not work; I haven't tested it.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
03 Aug 2014 09:01 PM
-- NEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEOPE

-- ALL BRICKS --
X = game.Workspace:GetChildren()
if X:isA("Part") then
X.BrickColor = BrickColor.new("Bright Yellow")
end

-- CERTIAN COLORS --
X = game.Workspace:GetChildren()
if X:isA("Part") then
if X.BrickColor == BrickColor.new("Really Red") then
X.Color = BrickColor.new("Bright Yellow")
end
end
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
03 Aug 2014 09:02 PM
ugh.


Color = "Bright red";

for i,v in pairs(game.Workspace:GetChildren()) do
if v:IsA("Part") then
v.BrickColor = BrickColor.new(Color)
end
end
Report Abuse
LuaRekt is not online. LuaRekt
Joined: 02 Aug 2014
Total Posts: 1
03 Aug 2014 09:02 PM
for i,v in pairs(Workspace:GetChildren()) do
if v.className == "Part" then
v.BrickColor = BrickColor.new("Bright red") --idk change to wat u want
end
end
Report Abuse
Kyuro is not online. Kyuro
Joined: 03 Sep 2012
Total Posts: 5800
03 Aug 2014 09:02 PM
^
Don't be so harsh about it :P
I'm still a noob xP
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