Hi guys!
Im creating a sound player through GUI. Obviously, a Sound instance will not work with an Image ID. In order to mitigate any errors, is it possible to identify an ID which the user has entered (Eg Sound, Texture, item etc)?
Hi guys!
Im creating a sound player through GUI. Obviously, a Sound instance will not work with an Image ID. In order to mitigate any errors, is it possible to identify an ID which the user has entered (Eg Sound, Texture, item etc)?
It appears that the MarketplaceService can give this information.
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/GetProductInfo
local info = game:GetService("MarketplaceService"):GetProductInfo(asset_id)
print(info.AssetTypeId)
The list of asset types is here:
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Great! thanks for the help! One more thing: Do you know why TextBoxes are not working on SurfaceGui's?
Create a question and I will make an answer for you. I believe there is also another person suffering from this problem.