help I am trying to get the players viewport as a texture 2d

You can duplicate it in the content browser. Right click, duplicate. Maybe a child blueprint does also work.