He is using separate object that he is attaching to player
And then check if that object is in collision with box
And you went straight for the player <> box collision
When you fallow tutorial and you only do part of what you see
You should not be surprised it does not work