I donโt know about your admin system, but if exploiters can access the server you have a serious problem and should focus on fixing that. Deleting sounds they insert is just an indirect solution. But you could loop through all the children of the workspace and use :IsA(โSoundโ) and then delete those sounds.
local c = 0
for _, d in ipairs(workspace:GetDescendants() do
if (d:IsA("Sound")) then
d:Stop()
d:Destroy()
c = c + 1
end
end
warn(c.." sounds removed")
Formatted for a one-line admin/dev console command:
local c = 0 for _, d in ipairs(workspace:GetDescendants() do if d:IsA("Sound") then d:Stop() d:Destroy() c = c+1 end end warn(c.." sounds removed")
Also if you have exploiters doing stuff on the server you might have a backdoor problem.