Advertisement
whiteexploiter

Untitled

Jun 25th, 2020
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. _G.skip = false --execute just _G.skip=true to skip a song
  2.  
  3. local playlist = {
  4. ["Replay"] = "https://pastebin.com/raw/tdGw6DQy",
  5. }
  6.  
  7. function chat(msg)
  8. game:service'ReplicatedStorage'.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, 'All')
  9. end
  10.  
  11. function sing(url, title)
  12. local text = game:HttpGet(url, true)
  13. local lyrics = {}
  14. for s in text:gmatch("[^\r\n]+") do
  15. table.insert(lyrics, s)
  16. end
  17. local duration = #lyrics * 5
  18. chat("Duration: " .. tostring(duration) .. " seconds")
  19. for i,v in pairs(lyrics) do
  20. if _G.skip then
  21. chat("Skipping " .. title)
  22. _G.skip = false
  23. wait(1)
  24. break
  25. end
  26. wait(5)
  27. chat(v)
  28. end
  29. end
  30.  
  31. for i,v in pairs(playlist) do
  32. chat("Now playing: " .. i)
  33. sing(v, i)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement