In my game, I like having the output as clean as possible so I don’t have to filter through anything to find errors in my scripts. However, I found a useful sound pack where some of the sounds give an error “failed to load sound” when I try using them.
Is it possible to make a short script which can remove the sounds from my game which give this error? How would I make something like this?
means you are not the owner of these sounds, the new roblox audio update sucks.
for i, v in next, game:GetDescendants() do
if (v:IsA("Sound")) then
local id = v.SoundId:split("//")
if (not id) then continue end
local info = game:GetService("MarketplaceService"):GetProductInfo(id)
if (tonumber(info.Creator.CreatorTargetId)-64574087) ~= 0 then v:Destroy() end