This script gives me the color “Medium stone grey” (sometimes), but this color isn’t in the given allColors! I guess this is a bug.
allColors = {
"Shamrock",
"Burlap",
"Dark green",
"Pine cone",
"Moss",
"Carnation pink"
}
script.Parent.Changed:Connect(function()
local randomColor = allColors[math.random(1, #allColors)]
for _, child in ipairs(script.Parent:WaitForChild("Color"):GetChildren()) do
if child:IsA("Part")then
child.BrickColor = BrickColor.new(randomColor)
end
end
end)