What do you want to achieve? Keep it simple and clear!
I want to be able to access a random asset from Roblox’s Catalog/Library(assets such as videos and sounds)
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have tried using Proxy Service from these topics (Inserting EVERY hat in existence, How would I get a table of random hats? - #2 by Doqee), but I find no luck understanding how to do this. I also tried using InsertService:GetCollection() but the documentation isn’t really helpful. I am also aware of GetFreeDecals and GetFreeModels functions but these are just for some of the asset categories.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- This is what I have so far using ProxServ, video library was able to be printed local ProxServ = require(game.ServerScriptService.ProxyService) local InsertServ = game:GetService("InsertService") local rand = Random.new() local Proxy = ProxServ:New( 'secret', 'secret' ) local url = "https://search.roblox.com/catalog/json?CatalogContext=2&" local params = "Category=14" url = url..params local VideoLibrary = ProxServ:Get(url) local randomVid = VideoLibrary[rand:NextInteger(1,#VideoLibrary)] print(url) print(VideoLibrary) print(randomVid )
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.