Advertisement
Guest User

Music Runner

a guest
Apr 30th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local find = game.Workspace:FindFirstChild("ServerSound")
  2. local find2 = game.ReplicatedStorage:FindFirstChild("SoundTransmitter")
  3.  
  4. while true do
  5. wait()
  6. for i,v in pairs (game.ServerStorage["Gui + Songs"].Songs:GetChildren()) do
  7. if v.ClassName == "IntValue" and v.Value ~= "0" then
  8. find.SoundId = "rbxassetid://".. v.Value
  9. find:Play()
  10. wait(2.5)
  11. local soundname = game:GetService("MarketplaceService"):GetProductInfo(v.Value, 0)
  12. find2:FireAllClients(soundname.Name)
  13. wait(find.TimeLength)
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement