Audiosource to stick to player

Hey guys,

Im stuck with a problem and i’m sure i cant be the only one who’s come across this.
I’ve made a gameobject with an audiosource that gets instantiated when i press mouse 0.
visa vis - press mouse button to hear a gunshot SFX.

That works, all grand.
but it sounds shit!
The “bulletSFX” gameobject take the players transform on creation but doesnt keep it.
so the sound is a bit funky.

but for the life of me i cant get the bulletSFX object to update to the players position.
i’ve tried everything ( i know of anyway ).

Anyone else come upon this problem?
Cheers

I DONT KNOW!!!

It should be as simple as that, and i’ve tried a couple of different versions on that.
The script is attached to the player. so the line should be.

Bullet.transform.parent = transform;

When i run it, first off it doesnt follow the player, second i get this error
Setting the parent of a transform which resides in a prefab is disabled to prevent data corruption.

I’m not going to add it to the player because its not really a component of the player. Technically this is a component of a gun. But its just for a demonsration. There will already be an audiosource on the player