Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Sound data didnt load?

Asked by
iuclds 720 Moderation Voter
4 years ago
Edited 4 years ago

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

Log in to vote
1
Answered by 4 years ago
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

Ad

Answer this question