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

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

Asked by 6 years ago
script.Parent.Brickcolor = BrickColor.new("Bright green")
3
Brickcolor should be BrickColor. Lua is case sensitive and in the context of ROBLOX, the properties are to be spelt correctly. User#24403 69 — 6y

1 answer

Log in to vote
0
Answered by
yHasteeD 1819 Moderation Voter
6 years ago
Edited 6 years ago

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

0
It is "BrickColor" he never put Brickcolor greatneil80 2647 — 6y
2
The first BrickColor had a lowercase color. ihatecars100 502 — 6y
0
thanks it helped alot! Neosavvy 2 — 6y
Ad

Answer this question