Alright so I’m currently making a gun system, however when you spam fire it causes the sound to glitch. I’ve tried instance.new(“Sound”) and gunSound:Clone() but neither seem to fix it.
Video:
Script:
gunFiredRemote.OnServerEvent:Connect(function()
local newFireEffectSound = fireSound:Clone()
newFireEffectSound.Parent = g19
newFireEffectSound:Play()
fireEffect.Enabled = true
fireLight.Enabled = true
wait(0.05)
fireLight.Enabled = false
fireEffect.Enabled = false
wait(1.9)
newFireEffectSound:Destroy()
end)