Advertisement
Be_Gone_Thot

MusicList

Apr 21st, 2020
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. local Music = {};
  2.  
  3. local URL = game:HttpGet("https://epicgameronmylevel696969.000webhostapp.com/Data.json",game:GetService("HttpService"))
  4. local Json = game:GetService("HttpService"):JSONDecode(URL)
  5.  
  6. for i,v in pairs(Json) do
  7. Music[v.Name] = v.SoundId
  8. end
  9. for i,v in pairs(Music) do
  10. local SoundInstance = Instance.new("Sound",game:GetService("Lighting"))
  11. if SoundInstance.TimePosition < 0.05 then
  12. SoundInstance:Destroy()
  13. table.remove(Music,v.Name)
  14. end
  15. end
  16. return Music
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement