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

How can I color a brick (using script)?

How can you change a brick's color using a script, I'm afraid I did something wrong in my code....

2 answers

--Above codes that will lead the following to fire (example: a function that goes off when a player spawns)
local x = game.workspace.Part -- change so it finds the location of it
x.BrickColor = BrickColor.new(1) -- Change the number to the wanted value
--Other codes and ends

Okay, so this is really simple. Please read this wiki for more information. In short, what that block of code does is:

  • 1st it finds the part.
  • 2nd it changed the "BrickColor" of the part to the value 1. Read this wiki for information regarding which number represents which color.

Have a great day!

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