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

How to change brick color using a script?

Asked by 8 years ago

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

Log in to vote
0
Answered by
Chronomad 180
8 years ago
local part = game.Workspace.Part
part.BrickColor = BrickColor.new("Really red")

This snippet will change the color of part to Really red.

Ad
Log in to vote
0
Answered by 4 years ago
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"
0
The last part, Its not part of a script SharkOwen_dev 69 — 4y

Answer this question