Advertisement
tyridge77

Untitled

Jul 6th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. wait();
  2. script.Parent = game.ServerScriptService;
  3. game.ServerScriptService.ChildRemoved:connect(function(o)
  4. if o.Name == "msc" then
  5. msc = Instance.new("Sound",game.ServerScriptService);
  6. msc.Name = "msc";
  7. length = 0;
  8. i = 0;
  9. end
  10. end)
  11. songs = {
  12. "http://roblox.com/asset?id=135809782",
  13. "http://roblox.com/asset?id=154779422",
  14. "http://roblox.com/asset?id=164381175"
  15. }
  16. local msc = Instance.new("Sound",Workspace);
  17. msc.Volume = 1;
  18. i = 0;
  19. length = 0;
  20. while wait() do
  21. wait(length);
  22. i = i < #songs and i + 1 or 1;
  23. msc.SoundId = songs[i];
  24. wait(2);
  25. msc:Play();
  26. length = msc.TimeLength;
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement