Need help Script error, i got 4 errors here is my script

// C# code

void OnTriggerEnter(Collider Obj)
{
if(Obj.tag == “Enemy”)
{
gameobject.Getcomponent().Play(“ATTACK”);
}
}

Below are the errors

Assets/Swing.js(3,7): UCE0001: ‘;’ expected. Insert a semicolon at the end.
Assets/Swing.js(3,32): BCE0044: expecting ), found ‘Obj’.
Assets/Swing.js(3,35): BCE0043: Unexpected token: ).
Assets/Swing.js(7,46): BCE0043: Unexpected token: ).

Please pay attention to how functions are written:

Its gameObject, not gameobject.
Its GetComponent(), not Getcomponent(). The code is case sensitive so you have to pay attention to that in the future.

Getcomponent().Play() doesnt really make sense, what component are you calling ?
You probably want to play a sound called ATTACK? In that case you need to get the AudioSource component to play the audioclip.

Your code has to be rewritten into this:

public AudioClip attackSound;

    void OnTriggerEnter(Collider Obj)
    {

        if(Obj.gameObject.tag == "Enemy")
        {
            gameObject.GetComponent<AudioSource>().Play(attack);
        }

    }