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

Is there any way to destroy all audios without permission using command bar?

I have a lot audios that want my permission to use them (i cant grant permission to them) they generate a lot of mess in output and i want to delete them all using command bar is there any way to do this?

1 answer

as far as i know, you cannot hide these permission requests from the output

if you really want to remove every, single audio from your game; you can use a for .. in pairs() do loop, :GetDescendants() on the game and :IsA(), all three respectfully creating a loop, returning every object in the game and checking if an object is a specific type.

for index, object in pairs(game:GetDescendants()) do
	if object:IsA('Sound') then
		-- do something with this sound object
	end
end

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