Stop making stuff up.
In the US at least automatic weapons are nominally legal at the federal level after hefty tax stamps and background checks but states / local jurisdictions can and do regulate more / outright ban them.
They're still not illegal, as OP said.