Genetic mutations can also cause malformation of the teeth. Thus, the role of hereditary factors in provoking bad teeth cannot be sidelined. But as far as discoloration / staining of the teeth is concerned, hereditary factors have a minimal role to play. Environmental factors play a dominant role here. Hereditary factors do play a role, but other factors like smoking, use of drugs while the new teeth are developing, and root canal procedures, can also contribute to terrible teeth a big way.