-- Local script
local MusicId = require(script.StorageID)
local Chosen = MusicId[math.random(1, #MusicId)]
print(Chosen) --> Random music Id stored within the Module
I suggest you to use the normal code you got there though since it’s a lot more simple than this one
As mentioned earlier, using a module script is best to do this. Add a module script that is parented, create a function with all of your ids, and return the value (your ID).