So I made a GUI and put this script in it.
local okbutton = script.Parent.TextButton
function onClicked(id)
id = script.Parent.TextBox.Text
local music1 = Instance.new("Sound")
music1.Parent = game.Workspace
music1.SoundId = "http://www.roblox.com/asset/?id="..id
wait(1)
music1:Play()
end
script.Parent.TextButton.MouseButton1Click:Connect(onClicked)
Well, it's not working. Can somebody help me fix this?

1 comment
I tried that with another method, but it's still not working.I have described everything in more detail below. I would be very grateful if you would read it.