I’m trying to make it so when I left click, a gunshot sound plays, but literally every way i’ve researched doesn’t work! I’m slightly going insane due to all the stress from this error that just won’t go away. If someone could tell me what’s wrong with the script, i’d be extremely thankful.
Script here:
function Update ()
{
if ( Input.GetButtonDown("Fire1") ) {
GetComponent AudioSource;("SawedOff").Play("Shotgn2");
}
}