---------------
--// Code
---------------

while true do

	task.wait()

	count1 = count1 + 0.001*speed
	count2 = count2 + 0.001*speed2

	if count1 > 1 then
		count1 = 0
	end

	if count2 > 1 then
		count2 = 0
	end
	
	local Color1 = ColorSequenceKeypoint.new(0, Color3.fromHSV(count1,1,1))
	local Color2 = ColorSequenceKeypoint.new(1, Color3.fromHSV(count2,1,1))
	
	local Color4 = ColorSequenceKeypoint.new(1, Color3.fromHSV(count1,1,1))
	local Color5 = ColorSequenceKeypoint.new(0, Color3.fromHSV(count2,1,1))

	
	for i,v in pairs(script.Parent:GetChildren()) do
		if v:IsA("SurfaceGui") then
			
			if v.Name == "Top" then
				v.Frame.UIGradient.Color =  ColorSequence.new({Color5, Color2})

			elseif v.Name == "Bottom" then
				v.Frame.UIGradient.Color =  ColorSequence.new({Color1, Color4})

			else
				
				v.Frame.UIGradient.Color =  ColorSequence.new({Color1, Color2})
			end
			
		end
	end



end
