make sure your character is tagged “Player” and that your flag has “istrigger” turned on under the boxcollider(or circle or polygon or edge collider) and make sure you assign the guitexture in the editor and also make sure the script is on. The problem is OnTriggerEnter doesn’t work on 2d games. u need OnTriggerEnter2D and (Collider2D col).