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

My Music ID GUI doesn't work for some reason?

Asked by 8 years ago

I think it's because it's far more complex than this... I don't know what to do, I don't know if it's the music ID Part, Id on't know if i have to replace it with another sound, I don't know...

The Loading Error says:

OnContentProviderSoundLoaded Sound failed to load Players.Player1.PlayerGui.Music.Frame.TextLabel.Sound : 232763959

No idea what that means, so explain in simple words please.

Many thanks.

01local sound = script.Parent.Parent.Frame.TextLabel.Sound
02local Input = script.Parent.Input
03 
04script.Parent.Enter.MouseButton1Down:connect(
05function()
06    sound.Playing = false
07    wait(.1)
08    sound.SoundId = Input.Text
09    wait(.1)
10    sound.Playing = true   
11end)

1 answer

Log in to vote
0
Answered by 8 years ago

for Roblox Sounds, you must add a URL that leads you to the asset id of the audio

ex rbxassetid://

All you have to do is simply add the url string before the audio id

01local sound = script.Parent.Parent.Frame.TextLabel.Sound
02local Input = script.Parent.Input
03 
04script.Parent.Enter.MouseButton1Down:connect(
05function()
06    sound.Playing = false
07    wait(.1)
08    sound.SoundId = "rbxassetid://"..tostring(Input.Text)
09    wait(.1)
10    sound.Playing = true   
11end)

I hope this helped!

0
Thank you so much. DarkAndLight64 0 — 8y
Ad

Answer this question