Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I get this to work?

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

0

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

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.