Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 1 year ago

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

Log in to vote
0
Answered by 1 year ago

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
Ad

Answer this question