Hello, i made a gun that reuses sounds, the issue I’m having with it, is that whenever i fire the weapon the sound gets added to a folder inside the tool “Handle” it plays the sound. But, for some reason, everyone can hear it like they’re the one firing it even if they’re like really far away from it.
i found a similar forum post like my issue but I’m not adding the sound under the script it’s parented to the part and in a folder that would hold it (to keep it neat and yes ofc i tried it without the folder and even parenting it under the tool itself the problem still happens)
-- this is when i fire the weapon
local Audio = getSound("HeavyGun")
Audio.Parent = Handle.WeaponAudio
Audio.Playing = true
delay(Audio.TimeLength,function()
Audio.Playing = false
Audio.Parent = game.ReplicatedStorage.bulletVisual.AudioHolder
end)
-- and this is a function i use to move the sound to the handle when it's needed
function getSound(String)
local SoundFolder = game.ReplicatedStorage.bulletVisual.AudioHolder
if #SoundFolder:GetChildren() == 0 or not game.ReplicatedStorage.bulletVisual.AudioHolder:FindFirstChild(String) then
local tracer = game.ReplicatedStorage.bulletVisual.BulletAudio:WaitForChild(String):Clone()
return tracer
else
local tracer = game.ReplicatedStorage.bulletVisual.AudioHolder:WaitForChild(String)
return tracer
end
end