The study consists of two parts. Part A will study healthy participants over approximately 12 weeks and Part B will study participants with type 2 diabetes over approximately 5 weeks, excluding screening. Screening is required within 28 days of the start of the study.