Sprite wont trigger collider

I got a prefab with this code

function OnControllerColliderHit(hit : ControllerColliderHit)
    {
        if(hit.gameObject.tag == "Goal")
            {
                Debug.Log("VICTORY!!!!!");
            }
   
    }

But when it lands on the gameobject with the tag Goal, it wont write “VICTORY!!!” in log.

The gameobject is a polygon collider 2D with 4 vertices.

what kind of prefab? a player? with a CharacterController?
i think you are doing something wrong

try to use OnColliderEnter

The prefab is just a gameobject that is being instantiated when clicked on space.
The Prefab got Circle Collider , and Rigidbody 2D.

When you say OnColliderEnter, i have no idear what i shall replace it with… please help me out, im new to this

since you are new, then try to look at some other codes including with physics. there are many free 2d complete projects in asset store with functional codes within.