I was wondering, it is easy to just change a brick color using the property tab, but out of curiosity, is it possible to change it using a script?
COMMUNITY QUESTION
How to change brick color using a script?
2 answers
local part = game.Workspace.Part
part.BrickColor = BrickColor.new("Really red")
This snippet will change the color of part to Really red.
local paint = game.Workspace.Part -- name whatever your part is --
local color = BrickColor.new
paint.BrickColor = BrickColor.new("Really blue")
Heres normal
game.Workspace.Part.BrickColor = BrickColor.new("Really blue")
Or if you didn't want to put color and wanted to make a efforted code :
local new = "Really blue"
game.Workspace.Part.BrickColor = BrickColor.new("New")
Heres a welcome
game.starterGUI.SurfaceGUI.TextLabel.Text = "Your welcome"
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
The last part, Its not part of a script