Usually the Canaanites/Phoenicians are credited with inventing the alphabet, but some of their symbols may have been taken from Egyptian characters.
Mesopotamia was before those. And the Indus Valley Harappan Script was before them.