Here is the script:

-- Get all badges for i = 1, 22 do GameManager:unlockBadge(i) end

And that's it! With this simple Lua script, you can get all badges in Geometry Dash without having to put in the time and effort to earn them. Just remember to use this script responsibly and at your own risk.