1. local duration = 10 -- integer only, no decimals
  2. if game:GetService("SoundService").RespectFilteringEnabled then return end
  3. local sounds = {}
  4. for i,v in pairs(workspace:GetDescendants()) do
  5. if v:IsA("Sound") and v.Parent.Name ~= "HumanoidRootPart" then
  6. table.insert(sounds,v)
  7. end
  8. end
  9. local con = workspace.DescendantAdded:Connect(function(v)
  10. if v:IsA("Sound") and v.Parent.Name ~= "HumanoidRootPart" then
  11. table.insert(sounds,v)
  12. end
  13. end)
  14. wait(.1)
  15. local start = math.floor(tick())
  16. repeat
  17. for i,v in pairs(sounds) do
  18. v:Play()
  19. v.TimePosition = math.random(0,v.TimeLength * 1000)/1000
  20. task.wait()
  21. end
  22. until math.floor(tick()) == start + duration
  23. con:Disconnect()
  24. for i,v in pairs(sounds) do
  25. v:Stop()
  26. end