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

Setting a Color3 value from a BrickColor value not working. Can someone help me plz?

Asked by 6 years ago
Edited 6 years ago

In my game, I have a colorizer with a ton of colors that set everything in your "Base" to that color. I want to use it on some things that require Color3. After some research, I came up with this:

game.Workspace.NeonColor3.Value = BrickColor.new(game.Workspace.NeonColor.Value).Color 

Obviously, it didn't work. I need help!

BTW NeonColor is a BrickColor value in the workspace and NeonColor3 is a Color3 value, also in the workspace

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

As far as I can tell, you're setting the value wrong. This should be the proper format:

game.Workspace.NeonColor3.Value = BrickColor.new(game.Workspace.NeonColor.Value).Color

If this is not correct, then my apologies; but it should be accurate.

0
Thanks. That fixed one of the problems. But it still isn't working. The Output is `bad argument #1 to 'new' (Color3 expected, got BrickColor)` Magnetar_Destroyer -3 — 6y
0
Oh, hmm, maybe (game.Workspace.NeonColor.Value) should be changed back? Idk. sweetkid01 176 — 6y
Ad

Answer this question