gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:24 AM |
What my idea is: Implementing a feature in ROBLOX Studio where you can find all instances of a certain colour and replace it with another How it will benefit ROBLOX: It will avoid excessive clicking .-. That's it. |
|
|
| Report Abuse |
|
|
| |
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:28 AM |
I'm too lazeee Can I have the script instead? ._. I'm not American. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 13 Aug 2013 07:29 AM |
| Well, there'es your problem. laziness will be your bane. |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
| |
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:33 AM |
Ok, i've learnt something. So, would the script be like this? game.Workspace.Part.Reddish Brown= BrickColor.new("Really black") |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 13 Aug 2013 07:34 AM |
"game.Workspace.Part.Reddish Brown= BrickColor.new("Really black")"
Nope. game.Workspace.Part.Color = BrickColor.new("Really black") |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 13 Aug 2013 07:36 AM |
Ooops.
game.Workspace.Part.BrickColor = BrickColor.new("Really black") |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:36 AM |
But what if the original colour is 'Reddish Brown'? I mean, I don't want to change the colour of everything. |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:38 AM |
^Never mind my previous post Thanks the help pl0x. |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:42 AM |
Wait, so is the script: game.Workspace.Part.BrickColor.Name.Reddish Brown = BrickColor.new("Really black")? |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2013 07:43 AM |
wc = Workspace:GetChildren() for i = 1,#wc do if wc[i].ClassName == "Part" then if wc[i].BrickColor == BrickColor.new("Reddish brown") then wc[i].BrickColor = BrickColor.new("Black") end end end |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:44 AM |
| Or could it be game.Workspace.Part.BrickColor.Name.("Reddish Brown") = BrickColor.new("Really black")? |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2013 07:44 AM |
| Because Reddish Brown (with a space) is a property of some text. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 13 Aug 2013 07:44 AM |
Or mine,
for _,part in pairs(game.Workspace:GetChildren()) do if part:IsA("Part") and part.BrickColor == BrickColor.new("Reddish brown") then print("hi") part.BrickColor = BrickColor.new("Really black") end end |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:44 AM |
| Thanks @Kirby. I'll try it out now. |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:45 AM |
| Thanks @bob. I'll try it out now. |
|
|
| Report Abuse |
|
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 13 Aug 2013 07:45 AM |
Here, you should read up on this! http://wiki.roblox.com/index.php/Absolute_beginner's_guide_to_scripting
:) |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
|
| 13 Aug 2013 07:46 AM |
| @above post *I mean boh /)_- Also, thanks PreHistoric for the help. |
|
|
| Report Abuse |
|
|
gdaka
|
  |
| Joined: 29 Dec 2011 |
| Total Posts: 1438 |
|
| |
|
bohdan77
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 7944 |
|
|
| 13 Aug 2013 07:53 AM |
Also, next time, Please go to Scripting helpers! http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20 |
|
|
| Report Abuse |
|
|