I’m working on a revolver tool and was attempting to add a fire sound, but it’s not seeming to work. Originally, I implemented the sound part of the script into the main script in the weapon but since it wasn’t working, I made its own separate Local Script.
local debounce = false
local tool = script.Parent
local sound = tool:WaitForChild("Sound")
tool.Activated:connect(function()
if not debounce then
debounce = true
sound:Play()
wait(1.5)
debounce = false
end
end)
First make sure you have no errors in the console.
If you’re clear there, make sure the sound is somewhere it can actually be “played”
The sound has to be parented to a part such as the Tools Handle, otherwise it’s not parented to something to play from. The Tool Object doesn’t have it’s own place in the workspace, the parts of it do.
If that’s also right, make sure the Instance itself doesn’t have any issues, such as an invalid audio ID, time position, or wrong volume.