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

Sound data didnt load?

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)

1 answer

✓ Accepted answer
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

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