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

How do I execute a simple brick color change?

Asked by
vidano 0
9 years ago

game.Workspace.Part.BrickColor = BrickColor.new("Really Blue") end

Like so?

0
Just for future reference, "end" closes scopes that are created with functions, conditionals, loops, etc. If you have a line of code that has a black arrow next to it, you can click that arrow to "minimize" the scope, like minimizing your web browser. funyun 958 — 9y
0
Thanks! vidano 0 — 9y

1 answer

Log in to vote
3
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

BrickColors are case sensitive! All capitolization must be exact.

Your problem was that you put "Really Blue" as the arguments for the BrickColor.new function - when you should be putting "Really blue".

Also, there's no need for that end.

game.Workspace.Part.BrickColor = BrickColor.new("Really blue")
Ad

Answer this question