Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to add color index in a loop from 0,0,0 to 255,255,255?

Asked by 5 years ago

function onClicked() for i = 1,10 do script.Parent.Parent.Light.Reflectance = script.Parent.Parent.Light.Reflectance + 0.1 script.Parent.Parent.Light.BrickColor = BrickColor.palette(BrickColor.new) + ('25.5, 25.5, 25.5') wait(0.1) end end script.Parent.ClickDetector.MouseClick:connect(onClicked)

Answer this question