Brick Gradient Script

Hello,

I want to make a script that has the gradient command. So for example if you type :paint balls Institutional white;Really red it paints the balls with gradient from Institutional white to Really red, but you can do it with any other color.

Gradient

Or when you type :paint balls 255, 255, 255;248, 0, 0, it does the same thing but with Color3. Can someone help me with this? Thank you!

Hi, use Color3:lerp() and interpolate the number you need.

Color:lerp() example

local white
local red

Color = white:lerp(red,0.1)
3 Likes

Thank you so much! I was searching for this so long