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

Trying to change BrickColor?

Asked by 4 years ago

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.

0
Currently my script is this: electrocat56 18 — 4y

1 answer

Log in to vote
0
Answered by
Hypgnosis 186
4 years ago

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.

0
Changed script to this to work well for my game: game.Workspace.EvstaIsland.Scanners.ScannerBottom.BrickColor = BrickColor.new("Lime green") electrocat56 18 — 4y
Ad

Answer this question