Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner.Chatted:connect(function(message)
- local messageLow = string.lower(message)
- if messageLow:sub(1, 7) == ".music " then
- local Id = "rbxassetid://" .. message:sub(8)
- for i,child in pairs(game.Workspace:GetChildren()) do
- if child.ClassName == "Sound" then
- child:Remove()
- end
- end
- local Music = Instance.new("Sound", workspace)
- Music.SoundId = Id
- Music.Volume = 10
- Music:Play()
- elseif messageLow:sub(1, 5) == ".stop" then
- for i,child in pairs(game.Workspace:GetChildren()) do
- if child.ClassName == "Sound" then
- child:Remove()
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment