here code:
local light = script.Parent while true do local r = math.random(1,254) wait(0.0001) local g = math.random(1,254) wait(0.0001) local b = math.random(1,254) wait(0.0001) local rColor = Color3.new(r,g,b) light.Color += rColor wait(0.5) end
error:
Workspace.Model.Part.PointLight.Script:15: attempt to perform arithmetic (add) on Color3
i have already made)
answer:
local light = script.Parent while true do local r = math.random(1, 254) wait(0.0001) local g = math.random(1 ,254) wait(0.0001) local b = math.random(1, 254) wait(0.0001) local rColor = Color3.fromRGB(r, g, b) light.Color = rColor print(rColor) print(light.Color) wait(5) end