Why does this script return an error ?
You are not supposed to be using the output scripts of the outputs created in the transaction but rather the output script of the output that is being spent. What you are using is the output script of the output in that transaction.

Rather you should click the output link next to the input and get the output script from the referenced output that the link takes you to.