Destroy object when FPS Character touches it

I’m trying to have it so when my FPS character touches this vase the vase will destroy.

here is my script:

function OnCollisionStart(c:Collision)
{
if (c.gameObject.name == “vase”)
{
Destroy(c.gameObject); // destroys the thing this script bumped into
}

}

Where do I put this script? on the vase or the character?

it doesn’t work on either one. Was hoping maybe someone could help me with a better script

Its OnCollisionEnter(), not OnCollisionStart()

You should also use code tags.

And for that script you would put it on your character (or whatever has the collider meant to collide with the vase). When your player collides with the vase it will call OnCollisionEnter along with the collision information passed as an argument. From there you can check the name and delete the colliding object if it’s a vase.