This script makes a gun fire sound play when I shoot.But the problem is, the sound stacks up and makes a horrible noise. I tried to add a wait(1) before stopping the sound and playing again but it didn't work.
local sound = script.Parent.Handle.Sound
if sound.IsPlaying then
wait(1)
sound:Stop()
sound:Play()
else
sound:Play()
end

3 comments
Maybe make the sound play as the gun shoots and before the next bullet appears you just stop the sound. That is of course if your gun has any kind of delay between shots.
I'll try that.
That still didn't work.