function SpringUtils.toLinearIfNeeded(s)if typeof(s)=="\067\111\108\111\114\051"then return LinearValue.new(Color3.new,{s.r,s.g;s.b})elseif typeof(s)=="\085\068\105\109\050"then return LinearValue.new(UDim2.new,{s.X.Scale;s.X.Offset;s.Y.Scale;s.Y.Offset})elseif typeof(s)=="\085\068\105\109"then return LinearValue.new(UDim.new,{s.scale;s.offset})else return s end end
--[=[
	Converts an arbitrary value to a LinearValue if Roblox has not defined this value
	for multiplication and addition.

	@param value T
	@return LinearValue<T> | T
]=]
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
