I want it to play music when the scripts parent is touched but it doesn't work can you fix my script?
music = game.Workspace.Music function onTouch() music:Play() end script.Parent.Touched(onTouch)
You forgot the :connect on the connection line, use this:
music = game.Workspace.Music function onTouch() music:Play() end script.Parent.Touched:connect(onTouch)