Advertisement
Migas3456

music(not made by me)

Feb 16th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function PlayMusic(ID)
  2. for i, v in pairs (game.Workspace:GetChildren()) do
  3. if v:IsA("Sound") then
  4. v:Remove()
  5. end
  6. end
  7. local music = Instance.new("Sound")
  8. local asset = "rbxassetid://"
  9. music.SoundId = asset .. ID
  10. music.Parent = workspace
  11. music.Volume = 10
  12. music.Looped = true
  13. music:Play()
  14. end
  15. PlayMusic()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement