local plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function(click)
local plrName = plr.Name
local Workspace = game.Workspace
local cartName = plrName..Cart
local cart = Workspace..cartName
for i,v in pairs (cart:GetChildren()) do
if v.Name == "Changable" then
v.Color = BrickColor.new(script.Parent.Name)
end
end
end)
I'm trying to get a script that I won't have to customize to work with other colors*
I have a color palette gui and now I'm trying to get the buttons to color parts in workspace the color of their name? I hope its possible because I've tried having one script to do it all but I would have to have it be HUGE with every single color which I'm trying to avoid. Please help xD

1 comment
Ask me to explain parts more I realise this is a bit confusing :)