There are still legal ways to have a gun in Australia and many other countries that “ban guns”. They don’t have total bans, they just have more restrictive regulations than the United States.
Consider how we regulate alcohol or marijuana as examples of how legalization of drugs works.