Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Change brick's color?

Asked by 10 years ago

How can i change a brick's color?

5 answers

Log in to vote
0
Answered by 10 years ago

That was answer was complicated. This will be easier. To change a bricks BrickColor you use the code BrickColor.new("ColorsNameinHere"). An example of this is

game.Workspace.BrickName.BrickColor = BrickColor.new("Really red")

--you can also use Color3.new()

game.Workspace.BrickName.BrickColor = Color3.new(0,0,0) --0,0,0 is black
Ad
Log in to vote
2
Answered by 10 years ago

You could use BrickColor.new

game.Workspace.Part.BrickColor = BrickColor.new("Blue")

Or, you could use Color3.new

game.Workspace.Part.BrickColor = Color3.new(0,0,1)
Log in to vote
0
Answered by
modFrost 130
10 years ago

There are a variety of ways to accomplish this, one specific way is changing the parts BrickColor property by utilizing one of these. BrickColor.new(StringColor) BrickColor.Random() BrickColor.Red() BrickColor.Blue() BrickColor.Green() BrickColor.Black() BrickColor.White()

An Example;

local Part = Instance.new("Part",game:FindService("Workspace"))
Part.BrickColor = BrickColor.new("Alder")
Log in to vote
0
Answered by 10 years ago

You can actually do this without scripting, too. If you click the brick in studio, and look at it's appearance in properties, just change the color from there.

0
I know how to do that, but i need a script to do that for me. masterhalo55 75 — 10y
0
Oh, ok. VirtualFlying 55 — 10y
Log in to vote
0
Answered by 5 years ago

try this

script.Parent.BrickColor = BrickColor.Random()

Answer this question