How to implement multiple sounds using the :PreloadAsync() function?

Let’s say that I have this lines of code to get the soundService, the ContentProvider and then the two sounds.

But how could I implement the 2 sounds into the :PreloadAsync() function. I mean you can’t do this:

ContentProvider:PreloadAsync({Sound1, Sound2})

Because that messes up everything. I tried a for loop, tables, and this kind of stuff; but all of them seem to get the same result. At the end, how can I implement multiple song using the :PreloadAsync() function?

This should work as long as these 2 sounds are Sound instances.
PreloadAsync takes the first argument as contentIdList.

Sorry for late response, turns out you’re right but I don’t know why it didn’t work for me the previous time. Anyway, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.