I am trying to make it so that the parent of the script (the part) will fade colors in and out. I am fairly new to scripting so this is probably wrong.
while true do
script.Parent:connect(function(a,b,c)
for i = 1, 255 do
script.Parent.Color = Color3.new(+1, +1, +1)
end
end)
if a = 255 and b = 255 and c = 255 then
for i = -1,255 do
script.Parent.Color = Color3.new(-1, -1, -1)
end
end
if a = 0 and b = 0 and c = 0 then
for i = 1,255 do
script.Parent.Color = Color3.new(+1, +1, +1)
end
end
end

1 comment
I think the for loops are where I went wrong