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
 

Re: Change all Bright Orange pieces to Cyan?

Previous Thread :: Next Thread 
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 02:41 PM
Help please. All the ones in workspace.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
alexdogg11 is not online. alexdogg11
Joined: 27 May 2010
Total Posts: 147
01 Aug 2014 02:43 PM
you want all the bright orange parts to be turned to cyan?
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
01 Aug 2014 02:44 PM
Use the generic for to search through Workspace and check the ClassName and Name of each object.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 02:47 PM
yes, please give me a script I can use in Command line

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 02:50 PM
I've got a script for this before, I just can't find the thread. please help.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
idyllically is not online. idyllically
Joined: 13 Mar 2010
Total Posts: 4622
01 Aug 2014 02:53 PM
for _, v in pairs(game.Workspace:GetChildren()) do
if v.BrickColor = BrickColor.new("Bright orange") then
v.BrickColor = BrickColor.new("Cyan")
end
end

Outfoxing Foxes
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 02:55 PM
15:55:07.796 - Error in script: 'then' expected near '='

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 02:57 PM
srsly I need this in the next 3 minutes.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:00 PM
srsly. I need this NOW.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:01 PM
You don't need it, you want it. There's a difference.

function x(y)
for _, v in pairs(y:GetChildren()) do
if v.BrickColor == BrickColor.new("Bright orange") then
v.BrickColor = BrickColor.new("Cyan")
end
x(v);
end
end
x(workspace);
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:02 PM
You also might want to make sure it is a BasePart.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:02 PM
16:02:05.229 - BrickColor is not a valid member of BlockMesh

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:03 PM
"You also might want to make sure it is a BasePart."
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:03 PM
how

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:05 PM
We're not going to do everything for you, this isn't even the right forum.
http://wiki.roblox.com/index.php?title=API:Instance/IsA
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:09 PM
Didn't work.

function x(y)
for _, v in pairs(y:GetChildren()) do
if v:IsA("BasePart") then
if v.BrickColor == BrickColor.new("Bright orange") then
v.BrickColor = BrickColor.new("Cyan")
end
x(v);
end
end
end
x(workspace);


Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:10 PM
Well it won't go through all models since you recurse only when it is a basepart, but the x(v) after 1 more end.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:12 PM
what

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:15 PM
function x(y)
for _, v in pairs(y:GetChildren()) do
if v:IsA("BasePart") then
if v.BrickColor == BrickColor.new("Bright orange") then
v.BrickColor = BrickColor.new("Cyan")
end
end
x(v);
end
end
x(workspace);
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:17 PM
Your scripts are not helping in anyway. That didn't do jack.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:18 PM
I just used part of the other guys, and it seems correct. Do you not know how to debug? What's the output
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:19 PM
I just tested it and it worked fine, you just don't know how to use it apparently. Just paste and run it in the command bar, it's not hard.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:21 PM
There's no output. The parts are in models.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2014 03:23 PM
And the parts' colors are Bright orange, not Neon orange or something?
I'll take a SS if you want.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
01 Aug 2014 03:25 PM
O_O. They were deep orange. It worked. Thanks

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
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