Unexpected symbol `{'

i am trying to work on my npc interaction system for my game but this error keeps showing up

  using UnityEngine;
    using System.Collections;
    
    public class interaction : MonoBehaviour {
    
    	//this is to indicate that the player is talking to someone
    	public bool playerIsTalking;
    
    
    	//When you start talking to the npc this is what they will say
    	public string[] CurrentMoodTowardsPlayerVeryBadSpeech;
    	public string[] CurrentMoodTowardsPlayerBadSpeech;
    	public string[] CurrentMoodTowardsPlayerGoodSpeech;
    	public string[] CurrentMoodTowardsPlayerVeryGoodSpeech;
    
    
    	public string[] justRobbedABankSpeech;
    	public string[] justRobbedABankSecretlySpeech;
    	public string[] justStoppedRobbingSpeech;
    
    
    
    
    
    
    	// Use this for initialization
    	void Start () {
    	
    	}
    	
    	// Update is called once per frame
    	void Update () {
    	
    	
    	}
    	void OnTriggerEnter (SphereCollider trig){
    		if(trig.gameObject.tag("Player") & (Input.GetAxis("Action"){
    			playerIsTalking == true;
    	}
    	}

was there a line number with the error message? if so, you should post it.

looks like this line is the problem, for multiple reasons:

if(trig.gameObject.tag("Player") & (Input.GetAxis("Action"){

you need to enclose the tests so that they evaluate to a single boolean, and your use of & is incorrect - you mean &&, so the line should look like:

if((trig.gameObject.tag("Player") && (Input.GetAxis("Action")) {

also, when posting please try to remove unused functions - it’s just more for us to read when helping you.