function SpringUtils.toLinearIfNeeded(n)if typeof(n)=="\067\111\108\111\114\051"then return LinearValue.new(Color3.new,{n.r,n.g;n.b})elseif typeof(n)=="\085\068\105\109\050"then return LinearValue.new(UDim2.new,{n.X.Scale;n.X.Offset,n.Y.Scale,n.Y.Offset})elseif typeof(n)=="\085\068\105\109"then return LinearValue.new(UDim.new,{n.scale;n.offset})else return n end end

function SpringUtils.toLinearIfNeeded(value)
	if typeof(value) == "Color3" then
		return LinearValue.new(Color3.new, {value.r, value.g, value.b})
	elseif typeof(value) == "UDim2" then
		return LinearValue.new(UDim2.new, {value.X.Scale, value.X.Offset, value.Y.Scale, value.Y.Offset})
	elseif typeof(value) == "UDim" then
		return LinearValue.new(UDim.new, {value.scale, value.offset})
	else
		return value
	end
end
