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

Color script not working and giving 'Unknown global 'Brickcolor'?

I put this in a normal script in a block called TestBlock. It won't work. Also, in the Script Analysis, it says Unknown global 'Brickcolor'

game.Workspace.TestBlock.Brickcolor = Brickcolor.new("Fog")

2 answers

✓ Accepted answer
game.Workspace.TestBlock.BrickColor = BrickColor.new("Fog")

The capitilization is important. In the script above, instead of using Brickcolor, I used BrickColor.

1 comment

0

@LuluziluplayzROBLOX, thank you!

The C in Color must be capitalized since Lua is case-sensitive. BrickColor.new()

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