That right was repealed by Congress one or two centuries ago.
The Second Militia Act of 1792 required people to personally buy and keep available (at all times) a (what is deemed a) “military grade rifle”, with ammunition, powder horn, satchel, and more. It was not voluntary. Everyone qualified was required to join the militia. At the time, the govt could NOT afford to equip them, so the govt mandated every militia member provide his own equipment for the use of the govt if it was needed.
Hence, the need for the Second Amendment. Why? The Second Militia Act of 1792 specifically stated the military gear bought for military use (referenced above), was EXEMPT from any and all debts owed by the militia member. The gear could NOT be taken for taxes owed–or any other reason. A militia member without his weapon, gear, etc was useless to the govt as a member of the militia, so the need to keep the militia armed–as long they were paying for their own gear–was critical.
“And every citizen so enrolled, and providing himself with the arms, ammunition and accoutrements re-quired as aforesaid, shall hold the same exempted from all suits, distresses, executions or sales, for debt or for the payment of taxes.”
Read the italicized header (Chap xxxiii) to get a sense of the meaning of the new law.
When the govt was finally able to pay to equip the military, the Second Amendment ended. Not because I say so, but because the rationale for needing it in the first place no longer existed. The GOVT provided all the military equipment, not the military member(s) serving. Thus, the govt no longer the military members to buy and pay for their own military gear.