A legislator is a person who writes and passes laws, especially someone who is a member of a legislature. Legislators are often elected by the people, but they can also be appointed or hereditary. They develop, introduce, or enact laws and statutes at the local, tribal, state, or federal level. Legislators can be referred to by different titles depending on the specific legislature, such as member of parliament, member of congress, senator, or representative. They are responsible for enacting laws and may also be involved in scrutinizing executive branch programs and performance. Additionally, a legislator can be the person who presents a bill or resolution for consideration, and may be joined by others, who are known as coauthors or cosponsors.