Triggers Not Working

Hi, so I’m trying to make it so that when The player collides with another block, that block will attach to the player. I’ve used 2D triggers before, but now they don’t seem to work. It looks like I have my triggers set up correctly, so I think it’s my code that is wrong.
void OnTriggerEnter2D (Collider2D Player) { %|836148721_1|% %|-2109144146_2|% // transform.parent = Player.transform; // ``} } I will be grateful for any answer.49501-boxcollstuff.png

Do you have a rigidbody component on the player gameobject? This is needed on at least one of the objects expected to collide.