So I have been working hours on the Portal Gun tutorial. I think there needs to be a post about how the YouTube tutorial doesn't work, as shown, and the possible solution to get it to work.
So I found that using the code that the tutorial gave me, the hidden data is not retrieved. After trying many things, I believe what is happening is that the player location is too precise where the hidden data is in a less precise block. Therefore the player location is never compared to the hidden data location properly.
To solve this, I created a drone, placed it the player's location, and then had the hidden data retrieved from the drones location. Fortunately this is only 3 line fix, but trying to figure that out, is a different story. I am hoping by posting this, others who try the tutorial and have a problem can fix it as well.
Here is my modified code. It is also important to note, you can't test this while in creative mode. I also changed the local location variable name to playerLoc, as to avoid ambiguity.