AutoShade - Make your models standout!

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
Screenshot 2021-02-03 082655

I hope that helped you out, Cheers!

2 Likes