I'm trying to make an audio playlist that picks a random song and plays it and I thought I had it down but it does absolutely nothing, no errors, nothing.
local audioFolder = game.Workspace.Audios:GetChildren()
function selectSong()
wait(.2)
local pickedSong = math.random(1,#audioFolder)
local namePick = tostring(pickedSong)
namePick:Play()
wait(320)
namePick:Pause()
end
while true do
wait(.2)
if audioFolder ~= nil then
selectSong()
wait(2)
else
print("Audio folder does not exist")
end
end
Please help, thanks!
