I have a fps shooter game and all the shooting and stuff is works, but my problem is that my player shoots glass ballish things and I need to know how to make it so when the ball collides with something it plays a audio clip.Please Help.
As @Lo0NuhtiK said, you could use OnCollisionEnter to detect the collision and play the sound. If the ball is destroyed when colliding, you can use PlayClipAtPoint:
var sound: AudioClip; function OnCollisionEnter(col: Collision){ // create temporary AudioSource and play the sound: AudioSource.PlayClipAtPoint(sound, transform.position); Destroy(gameObject); // suicide ball }