Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I detect if a soundid is invalid?

2 answers

Use

game:GetService("MarketplaceService"):GetProductInfo(id).AssetTypeId==3

Basically, what it does is it will send "true" if it's an audio but "false" if it isn't

The id is from this: http://wiki.roblox.com/index.php?title=Asset_types You can add different ids for it, like for example, if you want only model ids, change the number "3" to the asset ID

Product infos: http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/GetProductInfo

This discussion is preserved as it was. New answers, comments, and votes are closed.