What the script is supposed to do is when the button is clicked, it will change to the BackgroundColor3 to the Color selected (which there is only black until I found a fix). Can anyone help me out?
Module Script
local selected = script.Parent.Parent.Colors.Selected.Text
local functions = {
Paintbrush = function(brushcolor)
if selected == "Black" then
brushcolor = Color3.fromRGB(0, 0, 0)
end
end
}
Script
local module = require(script.Parent.Parent.Paintbrush)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.BackgroundColor3 = Color3.new(module.Paintbrush)
end)
Feel free to ask for clarification
