Here. I tried editing the values... Heres the script
wait(1)
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
if v:FindFirstChild("ClickDetector") then
v.ClickDetector.MouseClick:connect(function()
script.Parent.Color.BrickColor = v.BrickColor
script.Parent.Parent.Parent.DropColor.Value = v.BrickColor
end)
end
end
Heres the script with the one i tried editing and failed at it.
wait(1)
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
if v:FindFirstChild("ClickDetector") then
v.ClickDetector.MouseClick:connect(function()
script.Parent.Material.BrickMaterial = v.BrickMaterial
script.Parent.Parent.Parent.DropMaterial.Value = v.BrickMaterial
end)
end
end
