@kingkobra813 Can you try running the script again and check if you get the same error? Looks like maybe nginx.org was maybe down temporarily?
You can also check if this works:
wget http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~xenial_amd64.deb