|
| 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 |
|
|
|
| 01 Aug 2014 02:43 PM |
| you want all the bright orange parts to be turned to cyan? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|