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

Trying to change BrickColor?

So I am trying to make an airport for my friends group Chance Air and I am having trouble making a card that when it touches a certain block will make a lot of things happen. Right now I am struggling with changing the BlockColor of another part in the game. They are not grouped together and are not in a folder yet. When I run the script it gives me a one time error which says that I put a string there instead of a colour because I put "Lime Green" there. If I take away the quotation marks then it says the first word of the next line is invalid and it was expecting an = but instead got game because I am trying to access something else in the game on the next line. Please help as I am new to scripting and have scripted this all myself so far and a little help would be appreciated.

1 comment

0

Currently my script is this:

1 answer

✓ Accepted answer

You have the right idea, but there is a certain keyword needed to change the BrickColor.

Example:

Part.BrickColor = BrickColor.new("Lime green")

Make sure the 'green' in "Lime green" is lowercase.

1 comment

0

Changed script to this to work well for my game: game.Workspace.EvstaIsland.Scanners.ScannerBottom.BrickColor = BrickColor.new("Lime green")

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