error CS1503 and CS1502?

So I’m Trying to write a script to Play a SoundClip when a Coin is picked up, my code looks like this.

	void OnTriggerEnter2D(Collider2D other)
	{
	if (other.gameObject.CompareTag ("Coin")) {
			UnityEngine.AudioSource.PlayClipAtPoint (Coin, transform.position);
			}
		}

and then in Unity I get this error: error CS1503: Argument '#1' cannot convert 'UnityEngine.GameObject' expression to type 'UnityEngine.AudioClip'

I Tried it like this as well.

void OnTriggerEnter2D(Collider2D other)
     {
     if (other.gameObject.CompareTag ("Coin")) {
             AudioSource.PlayClipAtPoint (Coin, transform.position);
             }
         }

But then i Got this error: error CS1502: The best overloaded method match for 'UnityEngine.AudioSource.PlayClipAtPoint(UnityEngine.AudioClip, UnityEngine.Vector3)' has some invalid arguments

I Cant figure out what i am doing wrong.

Thanks in Advance :smiley:

Your “Coin” is a GameObject not an AudioClip. AudioSource.PlayClipAtPoint Unity Scripting API