EmitSound not always playing when repeating

It seems EmitSound doesn’t always play when repeating the same sound over rapidly, like say, a custom machine gun fire sound.

I’ve toyed around with a few other things, like trying to make a separate entity play the sound on its own, and it still does it. It seems to be really just that EmitSound is glitching out when trying to play the same sound rapidly.

StopSound doesn’t seem to work either. (as in, stopping it before playing it, to make sure the old sound doesn’t stack up with the new one)

Anybody knows a workaround or a way to fix this?