Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I find all sounds in the entire game via script?

Hey! I I just need to know how to detect a sound in any object in the game. I've tried workspace:FindFirstChild() (which doesn't work because it finds the "first" child). Any help would be appreciated, Thanks!

I've also tried the "IsA:" thing.

1 answer

✓ Accepted answer
for _,v in pairs(workspace:GetDescendants()) do
	if v:IsA("Sound") then
		--do whatever with v (the sound)
	end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.