Advertisement
Kingnoobzigator

Untitled

Apr 29th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game.Players.LocalPlayer
  2. Player.Chatted:connect(function(msg)
  3. if msg:sub(1, 5) == "Play/" or msg:sub(1, 5) == "play/" then
  4. local Sound = Instance.new("Sound")
  5. Sound.SoundId = ("roblox.com/asset/?id="msg:sub(6)))
  6. Sound.Parent = game.Workspace
  7. wait(.5)
  8. Sound:Play()
  9. elseif msg:sub(1, 6) == "LPlay/" or msg:sub(1, 6) == "lplay/" or msg:sub(1, 6) == "Lplay/" then
  10. local Sound = Instance.new("Sound")
  11. Sound.SoundId = ("roblox.com/asset/?id="msg:sub(7)))
  12. Sound.Parent = game.Workspace
  13. Sound.Looped = true
  14. wait(.5)
  15. Sound:Play()
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement