If I am understanding you right, you want to have the button background color fading from blue to orange and back in an endless loop? Try putting the following LocalScript below the TextButton.
local textButton = script.Parent
local color1 = Color3.fromRGB(128, 128, 255) -- blue
local color2 = Color3.fromRGB(218, 133, 65) -- orange
local changeSpeed = 10 -- increase this to make slower
spawn(function()
local i = -1
while true do
for i=-1,1,1/changeSpeed do
local f = math.abs(i)
textButton.BackgroundColor3 = Color3.fromRGB(
255 * (color1.r + (color2.r - color1.r) * f),
255 * (color1.g + (color2.g - color1.g) * f),
255 * (color1.b + (color2.b - color1.b) * f)
)
wait(0.05)
end
end
end)
Update:
...or use the really cool Tween Service, as Kylaaa mentioned:
[...]
local changeSpeed = 1 -- increase this to make slower
textButton.BackgroundColor3 = color1
local tw = game.TweenService:Create(textButton, TweenInfo.new(changeSpeed, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true), { BackgroundColor3 = color2 })
tw:Play()