I tried many ways, I still cant figure how to work it as I just learned this function. if you can fix this it'd be awesome
game.Players.LocalPlayer.Chatted:connect(function(msg)
if msg == ("music") then
local s = Instance.new("Sound", Workspace)
s.SoundId = "rbxassetid://200951070"
s:Play()
end
end)

1 comment
You need to put in the full link, not just the ID. It's pretty misleading; I made the same mistake.