Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How do I get this to work?

Asked by
DrShibe 17
9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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)
0
You need to put in the full link, not just the ID. It's pretty misleading; I made the same mistake. aquathorn321 858 — 9y

1 answer

Log in to vote
0
Answered by
W8X 95
9 years ago

The script works perfectly, It won't work in solo mode though.

Ad

Answer this question