Do sounds have ID numbers like decals/textures where you search in the catalog for them but the ID number is different?
Also have you tried just Searching for ‘Sound’ instead of the actual ID number to see if you can find it that way?
for _, service in ipairs(game:GetChildren()) do
local success, result = pcall(function()
return service:GetDescendants()
end)
if success then
if result then
for _, sound in ipairs(result) do
if sound:IsA("Sound") then
if sound.SoundId = "rbxassetid://541907812" then
print(sound.Name)
end
end
end
end
end
end
To anyone reading, I’ve found out why this is happening!
There is a sound in most of my tools that are supposed to be a material hit sound, but the TimeLength is 0 and I’m assuming that the ID is removed, (maybe because of the audio update) hence no sound playing.
I’ve tried placing the same ID on another Sound object, but to no avail.
I’m going to replace the ID with another one. Thanks people in the topic for trying to help!
This should be marked the correct solution. While there is a needed “=” on line (if sound.SoundId = “rbxassetid://541907812” then), fixing and running this code tracks the exact name needed without having to hunt manually like OP did.