Okay, I didn’t see anything here like this, I’ll take this down if anyone else already posted something like this.
Basically, this is for people who are getting that lovely red text that says something like:
Failed to load sound rbxassetid://1234567890: Unable to download sound data
This is intended for people who have sound errors and have not been able to find the sounds using Explorer filters or the View Sounds plugin.
This code is meant to just be ran in the “Run a command” section in Roblox Studio and does not need to be put in a script or or used while the game is running.
--// Written by NoobFragged --// Use GetDescendants to get all objects in the game local allObjects = game:GetDescendants() --// Iterate over all objects for i, object in ipairs(allObjects) do --// Check if the object is a Sound if object:IsA('Sound') then --// If it is a Sound, check its SoundId if object.SoundId == "rbxassetid://1234567890" or object.SoundId == "rbxassetid://2345678901" then print("Found sound in object: " .. object:GetFullName()) end end end
Just replace the rbxassetid://1234567890 with the asset ID you are looking for.
It won’t matter if you leave the 2nd one as it is or not.
You can just put more "or object.SoundId == " if you need to search for more sounds than 2.
You can run this right inside studio.
It will output like this:
04:14:01.988 Found sound in object: ServerStorage.Temporary. R6.Zombie Captain.Music - Edit
04:14:02.009 Found sound in object: ServerStorage.Temporary.Less Working Tools.Holy Divider.Scripts.AoeSpell.SFX - Edit
Those are examples of two sounds from assets made by Roblox that have non-working sounds that I found with this script. When I tried to filter Explorer by sounds to search through them, those did not even show up.
I wrote this script after being absolutely annoyed that I couldn’t find these sounds when I combed through every sound that showed up when I filtered the Explorer and searched every script.
I figure somewhere out there, someone has to be annoyed by these kinds of sound errors as well.
Note: Neither of those sounds showed up in the new “View Sounds” plugin either.
So I had really tried everything before I wrote this script.
I hope this helps anyone that was as frustrated as I was with sounds I couldn’t find.