Advertisement
Webcat70

sound spam

Jul 31st, 2020 (edited)
2,217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. sounds = {}
  2. function getSounds(loc)
  3.     if loc:IsA("Sound") then
  4.         table.insert(sounds,loc)
  5.     end
  6.     for _,obj in pairs(loc:GetChildren()) do
  7.         getSounds(obj)
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement