Changing a Part’s Color in Roblox Studio (Quick Read #4)

This is a very quick read on how to change a part’s color in Roblox Studio!

Short Breakdown

Here are some notes / requirements for the tutorial to work!

  • Must be done from a script (can be local or server depending on context)
  • The part must exist in the workspace or be referenced correctly
  • Use BrickColor or Color3 values to change color
Actual Tutorial

First, declare your part:

local myPart = workspace:WaitForChild("MyPart")

Next, choose the color you want. You can use BrickColor or Color3.

Using BrickColor:

myPart.BrickColor = BrickColor.new("Bright red") -- Use Roblox color names here

Using Color3 (more precise):

myPart.Color = Color3.fromRGB(255, 0, 0) -- RGB values for bright red

And you’re done! The part will now appear in the color you picked. :tada: :paintbrush:

Script For Lazy Readers
local myPart = workspace:WaitForChild("MyPart")
myPart.BrickColor = BrickColor.new("Bright red") -- Or use Color3 for custom colors

Thank you for reading, and please drop me a follow on Roblox! :woot:

2 Likes

Although this may be seen really basic for people with advance knowledge with scripting, this will help a lot people who are starting now. Thanks for the information!

1 Like

yw! trying to grind out as many of these as I can so I can help out new scripters searching up tutorials like I used to. thanks for the motivation :clinking_glasses:

1 Like

Thanks for making these! Im sure these will help a lot of people in the future!

I just have on itty-bitty suggestion/idea.


I know personally when I was learning to code I would find all these tutorials that would teach you how to do X, and thats it, and thats kinda what these are (not to be rude).

My idea is pretty simple, instead of making a tutorial on changing a parts color, what if it was how to modify a parts properties (such as position, size, color, etc.)

That way you learn a lot more stuff then just how to change the color, you learn how to change all the properties. Although it is basically the same thing as how you have it now, but saying “this is how to change the color” it feels like thats how you change the color, but for every other property it would be different.


Im not saying this to come off as rude or to belittle your work, Im here to give this idea cause I think you could actually teach it and help out a lot of new people! I know I would’ve loved a tutorial like the thing I mentioned above!

Nonetheless nice work, and thanks for taking the time to do this! :D

1 Like

Thank you for the suggestion! I will definitely take this into account when making my next one, as I have already tried to make one that follows this idea on tweenservice. Cheers :clinking_glasses:

2 Likes