This script below is suppose to insert the ids into a table, in which it does but if you play the game online it keeps picking the same ID if you use math.random.
NOTE: This is in a module script.
for i, id in pairs(require(script.musiclist)) do -- Sets up the music table, :)
table.insert(songs, id)
local ContentProvider = game:GetService("ContentProvider")
ContentProvider:Preload("rbxassetid://"..id) --Preload whatever asset(s) you need.
WaitForAssetsToLoad()
print("Songs loaded...")
local pickSong = songs[math.random(1, #songs)]
print(pickSong)
end
This is a picture of the list of IDs:

1 comment
It ALWAYS picks : 315664700 in online mode.