Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.skip = false --execute just _G.skip=true to skip a song
- local playlist = {
- ["Done with broken hearts"] = "https://pastebin.com/raw/0ZbL86Mv",
- ["Abnormal"] = "https://pastebin.com/raw/cYXWFWYU",
- ["Yeah 3x"] = "https://pastebin.com/raw/PWyH9j1r",
- ["Welcome to the jungle"] = "https://pastebin.com/raw/MYY0y2FY",
- ["Despacito"] = "https://pastebin.com/raw/vhAAgcJA"
- }
- function chat(msg)
- game:service'ReplicatedStorage'.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, 'All')
- end
- function sing(url, title)
- local text = game:HttpGet(url, true)
- local lyrics = {}
- for s in text:gmatch("[^\r\n]+") do
- table.insert(lyrics, s)
- end
- local duration = #lyrics * 5
- chat("Duration: " .. tostring(duration) .. " seconds")
- for i,v in pairs(lyrics) do
- if _G.skip then
- chat("Skipping " .. title)
- _G.skip = false
- wait(1)
- break
- end
- wait(5)
- chat(v)
- end
- end
- for i,v in pairs(playlist) do
- chat("Now playing: " .. i)
- sing(v, i)
- end
Add Comment
Please, Sign In to add comment