How to Change a Brick's Color Using Roblox Studio

Do you want to figure out how to make colors brick change randomly on Roblox? Then read this article!

Steps

  1. How.com.vn English: Step 1 WH.performance.clearMarks('image1_rendered'); WH.performance.mark('image1_rendered');...
    Go to your Roblox place and click edit on "Roblox Studio"
  2. Step 2 Go to the options all the way at the top and click on the "Insert" tab.
  3. Step 3 Click on "Object".
  4. Step 4 Click on "Script".
  5. Step 5 Open the script in the "Workspace" in the "Explorer".
  6. Step 6 Delete the "Hello World" text.
  7. Step 7 Type what it says in the "Script" section of the page or copy and paste it in the script.
      brick = script.Parentwhile true dobrick.BrickColor = BrickColor.random()wait(0.5) -- always include the wait in "while true do" (infinite loops). Otherwise your program will crash.end
    Advertisement


Community Q&A

Search
Add New Question
  • Question
    What if I wanted to use a button to change the color in Roblox?
    How.com.vn English: Community Answer
    Community Answer
    Use a ClickDetector and the MouseClick event. Instead of a while-true-do loop, you'll have to use a function that fires on script.Parent.ClickDetector.MouseClick.
  • Question
    How do I manufacture different colors of bricks?
    How.com.vn English: Community Answer
    Community Answer
    Go into ROBLOX studio, click on the brick, and click on that greyish square at the top. A big menu of colors will pop up, and just pick the one you want.
  • Question
    How do I change brick colors in Roblox in a script?
    How.com.vn English: Animebread
    Animebread
    Top Answerer
    script.Parent.BrickColor=BrickColor:("CGA Brown") Insert that script into the brick, and you can change the color to whatever color you would like.
See more answers
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

      Advertisement

      About this article

      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 21 people, some anonymous, worked to edit and improve it over time. This article has been viewed 46,023 times.
      30 votes - 55%
      Co-authors: 21
      Updated: July 23, 2022
      Views: 46,023
      Thanks to all authors for creating a page that has been read 46,023 times.

      Did this article help you?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement