Advertisement
whiteexploiter

Untitled

Jun 25th, 2020
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. _G.skip = false --execute just _G.skip=true to skip a song
  2.  
  3. local playlist = {
  4. ["Replay"] = "_G.skip = false --execute just _G.skip=true to skip a song
  5.  
  6. local playlist = {
  7. ["Replay"] = "https://pastebin.com/raw/tdGw6DQy",
  8. }
  9.  
  10. function chat(msg)
  11. game:service'ReplicatedStorage'.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, 'All')
  12. end
  13.  
  14. function sing(url, title)
  15. local text = game:HttpGet(url, true)
  16. local lyrics = {}
  17. for s in text:gmatch("[^\r\n]+") do
  18. table.insert(lyrics, s)
  19. end
  20. local duration = #lyrics * 5
  21. chat("Duration: " .. tostring(duration) .. " seconds")
  22. for i,v in pairs(lyrics) do
  23. if _G.skip then
  24. chat("Skipping " .. title)
  25. _G.skip = false
  26. wait(1)
  27. break
  28. end
  29. wait(5)
  30. chat(v)
  31. end
  32. end
  33.  
  34. for i,v in pairs(playlist) do
  35. chat("Now playing: " .. i)
  36. sing(v, i)
  37. end",
  38. }
  39.  
  40. function chat(msg)
  41. game:service'ReplicatedStorage'.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, 'All')
  42. end
  43.  
  44. function sing(url, title)
  45. local text = game:HttpGet(url, true)
  46. local lyrics = {}
  47. for s in text:gmatch("[^\r\n]+") do
  48. table.insert(lyrics, s)
  49. end
  50. local duration = #lyrics * 5
  51. chat("Duration: " .. tostring(duration) .. " seconds")
  52. for i,v in pairs(lyrics) do
  53. if _G.skip then
  54. chat("Skipping " .. title)
  55. _G.skip = false
  56. wait(1)
  57. break
  58. end
  59. wait(5)
  60. chat(v)
  61. end
  62. end
  63.  
  64. for i,v in pairs(playlist) do
  65. chat("Now playing: " .. i)
  66. sing(v, i)
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement