Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Club Music Module Wont play the audio due to contentprovider error?

Asked by
LuaDLL 253 Moderation Voter
5 years ago
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

0
If it was copyrighted Roblox went through and deleted them this summer. If you have licensed music, you can email them. ABK2017 406 — 5y
0
none are copy righted thats not the issue LuaDLL 253 — 5y
0
post the module script to hellmatic 1523 — 5y

Answer this question