How to use OnTriggerEnter

function OnTriggerEnter(other: Collider){
if(other.gameObject.tag == “Soul”){
print(“Hello!”);
}
}

So i have my soul with the tag “Soul” and it has isTrigger, and rigidbody2d. when i go over it, it doesnt say “Hello!” Please help

you should use OnTriggerEnter2D

Or search top right on site for ontriggerenter 2d

Make sure to read Frequently Asked Questions - Unity Answers
you get -1 since it has been asked a million times, and would take you little effort to find out yourself.