Why this script isn't working/ is not changing the Value?

I guess it doesn’t matter what i want to do with that script xd ..but anyway, i don’t understand why it doesn’t change the Value (Brick Color Value).
The 1. two lines not the problem, i mean the 3. line.

extra: can someone tell me how to save this brick value cuz my normal value saving script just save number values.

script.Parent.MainFrame.Black.MouseButton1Click:Connect(function()
event:FireServer(script.Parent.Car.Value,“Really black”)

script.Parent.Car.Value.BodyColor.Value = script.Parent.Car.Value.BodyColor.Value[“Really black”]

end)

Outputline: Really black is not a valid member of BrickColor

Can you show me the explorer with the hierarchy of all of this:

This is very confusing for me to understand.

If you are wanting to change the BrickColor, You’d just do BrickColor.new(“Really black”)

2 Likes

I made a Car color customization gui if i click a specific Button it should change the color (what is already working) and it should change the The BrickColor value in the Car to the color i selected with the button. (what doesn’t work)

Mh but i guess your answere is the solution.
So i guess i have to write:

…BodyColor.Value = BrickColor.new(“Realy black”)