The second amendment doesn’t give any rights. It forbids the federal government from infringing on the natural right to keep and bear arms. This is supposed to keep the power to revolt against tyranny in the hands of the people should they decide to exercise it. Thus it is supposed to keep potential tyrants in check and why potential tyrants don’t like it very much.
Can't be repeated enough!