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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
14 May 2012 08:30 PM
[ Content Deleted ]
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
14 May 2012 08:45 PM
wiki.roblox.com

Check there before you check here.

ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
14 May 2012 08:48 PM
[ Content Deleted ]
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
14 May 2012 09:01 PM
You don't need pairs or even LOOPS in general to paint a brick. Just use BrickColor, gosh.

http://wiki.roblox.com/index.php/BrickColor

ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
14 May 2012 09:09 PM
[ Content Deleted ]
Report Abuse
mjemje is not online. mjemje
Joined: 28 Mar 2009
Total Posts: 25787
14 May 2012 09:09 PM
@DX

And how will knowing about brick coloring give him the knowledge to make a script that detects EVERY brick that is really black?
Report Abuse
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
14 May 2012 09:10 PM
[ Content Deleted ]
Report Abuse
mjemje is not online. mjemje
Joined: 28 Mar 2009
Total Posts: 25787
14 May 2012 09:14 PM
There must be a way. The only alternative I can think of is putting a script in every brick saying

"while true do
if (script.Parent.BrickColor == "Really Black") then
...
end
wait (1)
end"

And I have not often worked with brick color, so a part of that may be wrong.

As well, this would not apply to any newly created bricks.

I am not the best scripter, (Far from it) so I don't think I can really give the answer.
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
14 May 2012 09:17 PM
if brick[i].BrickColor == "Really black" then



Not that hard. You don't have to remember codes, just the name of the color. Then you can do what ever you want with it.

ᶘ ᵒᴥᵒᶅ I'm a dog. Meow.
Report Abuse
Aurae is not online. Aurae
Joined: 11 May 2012
Total Posts: 178
14 May 2012 09:22 PM
Here is just a sample. I hope this is what you want. Try it out and tell me if it helps:

for _, v in pairs(game.Workspace:GetChildren()) do
if v.ClassName == "Part" then
if v.BrickColor == "Black" then
v.BrickColor = BrickColor.new("White")
end
end
end
Report Abuse
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
14 May 2012 09:25 PM
[ Content Deleted ]
Report Abuse
Altair55 is not online. Altair55
Joined: 28 May 2008
Total Posts: 36840
14 May 2012 09:26 PM
[ Content Deleted ]
Report Abuse
Aurae is not online. Aurae
Joined: 11 May 2012
Total Posts: 178
14 May 2012 09:26 PM
No problem. :]
Report Abuse
bananacupcake is not online. bananacupcake
Joined: 15 Jun 2010
Total Posts: 571
14 May 2012 09:29 PM
x = script.Parent

while true do
if x.BrickColor == BrickColor.new("Really Black") then
x.BrickColor = BrickColor.random()

end
end

Like dis?
Report Abuse
bananacupcake is not online. bananacupcake
Joined: 15 Jun 2010
Total Posts: 571
14 May 2012 09:30 PM
Oh. Nevermind. That's not what you wanted, apparently.

I'm crazy, don't judge.
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