Idk what the error is

I have this script typed because I was using a tutorial, and it’s saying error in line 1. Can someone help?
if(this.hits(player))
{
this.remove();
}

couple things to look out for, since we don’t have a lot of context.

  1. make sure there is a clip named player.
  2. make sure you are coding in a clip, not a frame. it wouldn’t make sense to test if a frame is touching the player.