I'm making a custom song load gui and it keeps showing
Failed to load sound 2527170656: Unable to download sound data
The script is
k = Instance.new("Sound") script.Parent.Enter.MouseButton1Click:Connect(function() k.Parent = game.SoundService wait(2) k.SoundId = script.Parent.SongID.Text k.Volume = 5 k.Playing = true end) script.Parent.Loop.MouseButton1Click:Connect(function() k.Looped = true end) script.Parent.NoLoop.MouseButton1Click:Connect(function() k.Looped = false end)
k = Instance.new("Sound") script.Parent.Enter.MouseButton1Click:Connect(function() k.Parent = game.SoundService wait(2) repeat wait() k.SoundId = script.Parent.SongID.Text until k.SoundId == script.Parent.SongID.Text. k.SoundId = script.Parent.SongID.Text k.Volume = 5 k.Playing = true end) script.Parent.Loop.MouseButton1Click:Connect(function() k.Looped = true end) script.Parent.NoLoop.MouseButton1Click:Connect(function() k.Looped = false end)
this will continue to request the sound until it has gotten the audio