Paygammy

The Streets Audio Grabber 2

May 17th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local Audios = {};
  2.  
  3. for i,v in pairs(game.Players:GetPlayers()) do
  4. local Characters = v.Character
  5. local BoxModel = Characters:FindFirstChild("BoxModel")
  6. local Tool = Characters:FindFirstChild("BoomBox")
  7. if BoxModel then
  8. print("Audio found, playing from "..v.Name..", currently playing: "..BoxModel.Handle.SoundX.SoundId)
  9. table.insert(Audios,string.sub(BoxModel.Handle.SoundX.SoundId,14,nil))
  10. elseif Tool then
  11. print("Audio found, playing from "..v.Name..", currently playing: "..Tool.Handle.SoundX.SoundId)
  12. table.insert(Audios,string.sub(Tool.Handle.SoundX.SoundId,14,nil))
  13. end
  14. end
  15. syn_clipboard_set(table.concat(Audios),", ")
Advertisement
Add Comment
Please, Sign In to add comment