-- Setup

gradientReference.BackgroundColor3 = START_COLOR
colorGoal = END_COLOR

local tweenInfo = TweenInfo.new(TWEEN_TIME, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 1, true)
local tween = TweenService:Create(gradientReference, tweenInfo, {BackgroundColor3 = colorGoal} )

tween:Play()

tween.Completed:Connect(function()
	if gradientReference.BackgroundColor3 == END_COLOR then gradientReference.BackgroundColor3 = START_COLOR end
	tween:Play()
end)

