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

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

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.

local sound = script.Parent.Parent.Frame.TextLabel.Sound
local Input = script.Parent.Input

script.Parent.Enter.MouseButton1Down:connect(
function()
	sound.Playing = false
	wait(.1)
	sound.SoundId = Input.Text
	wait(.1)
	sound.Playing = true	
end)



1 answer

✓ Accepted answer

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

local sound = script.Parent.Parent.Frame.TextLabel.Sound
local Input = script.Parent.Input

script.Parent.Enter.MouseButton1Down:connect(
function()
    sound.Playing = false
    wait(.1)
    sound.SoundId = "rbxassetid://"..tostring(Input.Text)
    wait(.1)
    sound.Playing = true    
end)

I hope this helped!

1 comment

0

Thank you so much.

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