Why won't the coin disappear when the player collides with it?

I’m working on a small game for my homework, and I encountered a problem. When the player runs into the coin, the player just stops, I have attached a script to the coin that says it should be removed when the player touches it, but when I put the coin into the map, it doesn’t work, anyone out there know what’s wrong?

I found it, it needed to be set to a trigger