Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = workspace
- music.Volume = 10
- music.Looped = true
- music:Play()
- end
- PlayMusic()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement