Do not allow non-audio assets to be played as sounds

People have been uploading very inappropriate songs as Meshes to bypass moderation, such as this one:

Despite it being a Mesh, you can still put its ID into a Sound object and play it in-game.
You should not be able to play a sound if the sound ID doesn’t lead to an actual Audio file.

2 Likes

This was patched a while ago but the bypassed meshes as audio weren’t deleted but I been actively going around collecting the IDs of these bypassed meshes as audios and reporting it to the moderation team. So far about 20+ have been deleted but I’m sure there is a lot more out there.

4 Likes

Furthermore, if you allow players to input their own audio IDs you can sanitize the input with this code:

local Info = game:GetService("MarketplaceService"):GetProductInfo(AssetId)
if not Info.AssetTypeId == 3 then return end
6 Likes