But how would I get what index to insert it to when playing a requested song? I don’t know if you understand what I’m having trouble with.
Im not sure if you’re talking about the same thing that I am thinking about,
To be honest I think just using table.insert(Table, Index)
would work just fine.
Please let me know if there is a different problem you are trying to solve here because I seem to be a bit lost.
Look at the code in my post. At the bottom, there’s a table.insert(queueTable, 1, songID). But if I insert it to index one every time and multiple songs get requested, they’re not gonna be played in a queue order. My issue is that I’m not sure how to get what index I’m gonna be inserting the requested song to.