Second Amendment is an individual right
The Second Amendment reads “A well-regulated Militia, being necessary to the security of a free state, the right of the people to keep and bear arms, shall not be infringed.” According to my information, in early colonial days the term militia referred to all citizens capable of bearing arms to protect the people from the possible tyranny of an aristocratic government, and also to hunt game and protect their home, and some dictionaries still have that definition.
If it pertained only to state militia, the Second Amendment would be a state right rather than an individual right. Another modern definition would be any of the country’s armed forces. Usually one of the first actions of a future dictator would be to ban firearms and the Bible.