What solutions have you tried so far? I tried using Color3, and tostring(TextBox.Text)
This is my script:
script.Parent.MouseButton1Click:Connect(function()
local box = tostring(script.Parent.Parent.Color.Text)
wait()
local flower = script.Parent.Parent.Parent.Parent.Parent.Character:FindFirstChild("flowerhead")
if flower then
flower.BrickColor = BrickColor.new(box)
end
end)
Iâm not sure brick color is a property of a UI element.
If this is a GUI element, it likely has properties called âBackgroundColor3â and âBorderColor3â. You need to input it as
BackgroundColor3 = script.Parent.BackgroundColor3 --anything so long as it's "Color3"
I canât see anything wrong here.
My only workaround would be to attempt to have the player break the input with â,â to format it like â25,60,78â
Then use âstring.split()â to break the input into three values.
Im trying to make the flowerâs head BrickColor change to the inputted one
For example
Box content = Bright red
part.BrickColor = BrickColor.new(box.Text)
I tried using tostring() but it still didnt work