Hi there, This is exactly how it works:
How it works
function ColorPart(part) --part is part of the model that will be colored
local num = CustomRandom.Range(MinValue, MaxValue) --num is number between refer to *1
local color = Color3.new() --creating new color
color = Color3.new(math.clamp(color.R + part.Color.R + num, 0, 1), math.clamp(color.G + part.Color.G + num, 0, 1), math.clamp(color.B + part.Color.B + num, 0, 1)) -- Assign colors in that way: part color + number between MinValue and MaxValue and clampt it between 0, 1 to stop artefacts
part.Color = color --Assign color to the part
end
*1
I hope that helped you out, Cheers!