function randomId(t)
if t == "No" then
local r = math.random(1,#module.Ids)
for i,v in pairs(module.Ids) do
if i == r then
return module.Ids[i]
end
end
elseif t == "Yes" then
for i,v in pairs(module.Requested) do
if i == (RequestOn+1) then
RequestOn = RequestOn + 1
return module.Requested[i]
end
end
end
end
function change(Type)
local Id = randomId(Type)
Sound.SoundId = Id
game.ContentProvider:PreloadAsync(Sound)
Sound:Play()
end
Error:
17:38:23.565 - Unable to cast to Array 17:38:23.566 - Stack Begin 17:38:23.566 - Script 'ReplicatedStorage.MusicModule', Line 77 - global change 17:38:23.567 - Script 'ReplicatedStorage.MusicModule', Line 93 - field RequestChange 17:38:23.567 - Script 'ServerScriptService.Server_Music', Line 10 17:38:23.568 - Stack End

3 comments
If it was copyrighted Roblox went through and deleted them this summer. If you have licensed music, you can email them.
none are copy righted thats not the issue
post the module script to