I am getting this error when i add the code:
GetComponent().PlayOneShot(crashSFX);
it is saying that you don’t have an AudioSource component on the object so can you don’t check that in the editor and hierarchy?
I think you’ll find that crashSfx is null. You’ll need to set it in the inspector.