i have been trying fool around its, , it's not working, here's code:
color = color3.new(math.random(255),math.random(255),math.random(255)) print(color) script.parent.backgroundcolor3:lerp(color,0)
color3:lerp
way interpolate between 2 color3
values. it's cframe:lerp
of color3
.
the reason code provided not working because have delta
argument of lerp
set 0. here's example on how use properly:
local newcolor = color3.new(math.random(255), math.random(255), math.random(255)) i=0,1,0.1 script.parent.backgroundcolor3 = script.parent.backgroundcolor3:lerp(newcolor, i) wait() end
Comments
Post a Comment