Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- Player.Chatted:connect(function(msg)
- if msg:sub(1, 5) == "Play/" or msg:sub(1, 5) == "play/" then
- local Sound = Instance.new("Sound")
- Sound.SoundId = ("roblox.com/asset/?id="msg:sub(6)))
- Sound.Parent = game.Workspace
- wait(.5)
- Sound:Play()
- elseif msg:sub(1, 6) == "LPlay/" or msg:sub(1, 6) == "lplay/" or msg:sub(1, 6) == "Lplay/" then
- local Sound = Instance.new("Sound")
- Sound.SoundId = ("roblox.com/asset/?id="msg:sub(7)))
- Sound.Parent = game.Workspace
- Sound.Looped = true
- wait(.5)
- Sound:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement