I have speakers placed around my building (as shown in the image), I would like players to be able to change the audio inside, The problem is I don’t know how to get all the Sounds from the parts at the same time. Any Ideas?
I haven’t tried anything because I simply just don’t know!
local speakers = workspace.Speakers -- or where the folder is
local audios = {}
for _,v in pairs(speakers:GetDescendants()) do
if v:isA("Sound") then
table.insert(audios,v)
end
end
Yup, as @ItzMeZeus_IGotHacked mentioned, they get added by themselves when a sound is found in the folder via table.insert, if you have anymore issues don’t be afraid to make another post!