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

My code to change the brick color of a part doesn't work. Anything im doing wrong?

script.Parent.Brickcolor = BrickColor.new("Bright green")

1 comment

3

Brickcolor should be BrickColor. Lua is case sensitive and in the context of ROBLOX, the properties are to be spelt correctly.

1 answer

✓ Accepted answer

You need to use BrickColor not Brickcolor Your script is good. only have this error

Here is fixed:

script.Parent.BrickColor = BrickColor.new("Bright green")

Hope it helped :)

You can see more here in wiki: BrickColor

3 comments

0

It is "BrickColor" he never put Brickcolor

2

The first BrickColor had a lowercase color.

0

thanks it helped alot!

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