So I've been making a gun framework which I would be able to apply to all of my future projects, but I've stumbled across a problem where whenever the player shoots their weapon, it only plays locally and not publicly. So far I've tried turning off 'RespectFilteringEnabled' in the Sound Service and writing a script that would play it publicly, but none of these methods have worked.
local debounce = false
local cooldownTime = 0.4
script.Parent.Activated:Connect(function()
if not debounce and Ammo > 0 then
debounce = true
local shooting = game:GetService("Players").LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Shoot)
local sound = game:GetService("StarterPack").Pistol.Sound
sound:Play()
shooting:Play()
Ammo = Ammo - 1
wait(cooldownTime)
debounce = false
end
end)
Any feedback would be appreciated!

2 comments
Well Is This A Local Script?
Well yes. I forgot to mention that.