Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to change brick color using a script?

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?

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"

1 comment

0

The last part, Its not part of a script

This discussion is preserved as it was. New answers, comments, and votes are closed.