Error With my BillBoard Script

https://gyazo.com/50fefc320164b13e20d8cdc5761fd9a4

Error:
17:09:47.848 - Players.Diguard.PlayerGui.LocalScript:3: bad argument #3 to ‘TextColor3’ (Color3 expected, got BrickColor)

Project Overview:
When I click a TextButton it is apposed to change the TextColor of the
textlabel on the thing, but it won’t work however, it works with BrickColor
But not with Color of a text.

script.Parent.BoothSettingsGui.Frame.TextColor.Color.Changed:Connect(function()
	local BoothColorChange = script.Parent.BoothSettingsGui.Frame.TextColor.Color.Value
	game.Workspace.BoothPart3.SurfaceGui.TextLabel.TextColor3 = BoothColorChange
end)

Hey, so if anyone has a fix that would be awesome, I would really like to get this finished and fixed, by the way I just got promoted, so this will be my first topic, feel free to tell me anything I did wrong!

1 Like

It’s because you need to use Color3s instead of BrickColors, if you need to use BrickColors, you can just convent the values.

I’m not doing anything with brick colors, I’m doing it with TextColors, do I need to use Color3s on TextColors? @Secretum_Flamma

Yes. TextLabels’ color property is named TextColor3.

1 Like

Ah let me try doing that, so I would do

script.Parent.BoothSettingsGui.Frame.TextColor.TextColor3
end)

No that wouldn’t work that’s the value what part would I change?

The bit of code you offered is so small, I can’t really help that much. Is this the full script?

Correct that is the full script. It is a localscript in StarterGui.

What part of color would I change to TextColor3?

uhh so… can you let me know as to what “TextColor” is, is it a TextButton or something like that?

TextColor is a frame, and inside that is color when is a Value.

can you send us a screenshot of the explorer tab? just so we can get a better view of the explorer and the code you gave us, also… make sure to give us an update in case you get any other errors or anything like that

No problem, here it is.
https://gyazo.com/a4c20978b84c2c9b5064718cf29494a1

1 Like

Frames don’t have any property named TextColor?

image

1 Like

the thing is… he isn’t going for any property, he’s searching for the “TexColor” in the Frame

TextColor is the name of the Frame, and Color is the name of the value!
image
Everytime you click a different textbutton for the color, the Value Changes to that color, it’s a BrickColorValue

You just answered your own question. Change it to a Color3Value.

1 Like

Ah thank you, let me try that.

also, this fits the #help-and-feedback:scripting-support category and not #help-and-feedback:code-review because you need help with the code, you don’t need people just to review it

1 Like