Hi I have a script to play some music with a GUI but it doesn't work I dont know why?
wait(8) sound = Instance.new("Sound") sound.Volume=1 sound.Pitch=1 sound.Name="" sound.Looped=true sound.PlayOnRemove=false player = script.Parent.Parent.Parent.Parent sound.Parent = player.Radio Format = "http://www.roblox.com/asset/?id=##ID##" frame = script.Parent:WaitForChild("Frame") frame:WaitForChild("Play").MouseButton1Click:connect(function() local input = tonumber(frame:WaitForChild("Input").Text) if input then sound:Stop() sound.SoundId=Format:gsub("##ID##", tostring(input)) sound:Play() end end) frame:WaitForChild("Stop").MouseButton1Click:connect(function() sound:Stop() end)
Thanks if you can help c: