The way you have your code set up right now (a function in one script and a while-loop trying to call it in another) does not work because functions are local to each script. Also, to call a function, you simply write the function name followed by (). If you move the while-loop into the script where the color function is defined, then this should work. Example:
function color()
--The code for what color should do goes here
end
while true do
color()
end
(And don’t forget to add a wait() somewhere in the loop or function!)