Advertisement
bennytrt2

Misc Release Sing in chat script edited to sing MC Songs roblox script

Apr 5th, 2022 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. _G.skip = false --execute just _G.skip=true to skip a song
  2.  
  3. local playlist = {
  4. ["Revenge"] = "https://pastebin.com/raw/4ZvZRV9F",
  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