Color3:lerp is a way to interpolate between two Color3 values. It's basically the CFrame:lerp of Color3.
The reason the code you provided is not working is because you have the Delta argument of lerp set to 0. Here's an example on how to use it properly:
local newColor = Color3.new(math.random(255), math.random(255), math.random(255))
for i=0,1,0.1 do
script.Parent.BackgroundColor3 = script.Parent.BackgroundColor3:lerp(newColor, i)
wait()
end
Color3:lerpis a way to interpolate between twoColor3values. It's basically theCFrame:lerpofColor3.The reason the code you provided is not working is because you have the
Deltaargument oflerpset to 0. Here's an example on how to use it properly: